While rendering the view page, based on some condition in the controller action I want to disable all the controls (textbox, checkbox, button etc) present in the form in a MVC view page. Is there any way to do that? Please help.
While rendering the view page, based on some condition in the controller action I
Share
you can pass a flag to the view to indcate that it must disable all the controls.
here is an example:
In the view(using jQuery):