Asp.net MVC Ajax - Disabling button in ajax.beginform?

616 Views Asked by At

I'm using microsoft ajax and ajax.beginform.

It's working great for model binding my partial view, but I need to conditionally disable some of the buttons in my form itself depending on what comes back from the server.

How can I go about this without using JQuery?

1

There are 1 best solutions below

1
On

Have you thought instead about using two separate views instead, and have your conditional logic in your controller determine which view to display.