How do I submit disabled input in ASP.NET MVC?

Sanchitos picture Sanchitos · Apr 23, 2010 · Viewed 87.1k times · Source

How do I submit disabled input in ASP.NET MVC?

Answer

Darin Dimitrov picture Darin Dimitrov · Apr 23, 2010

Can't you make the field readonly="readonly" instead of disabled="disabled"? A readonly field value will be submitted to the server while still being non-editable by the user. A SELECT tag is an exception though.