c# - How to check field properties in Controller of MVC Razor Engine -


i have requirement check attribute values of form field in controller, have simple textbox

now want check in controller either disabled or not? 1 guide me how achieve this? have searched alot on google found nothing, formcollection not providing either.

any appreciated.

i don't think want check whether textbox disabled. use checkbox , line of javascript disable's checkbox if user selects it. in controller can check see if boolean value recieved checkbox true.

public actionresult somecontroller (bool ischecked) {     if(ischecked){        //do     }     return //something  }   if ($('#checkbox1').is(':checked')) {       $("#textbox1").attr("disabled", "disabled");  } 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -