I want to disable a textbox in the view. So I use following code:
<%= Html.TextBox(\"ID\", Model.ID, new { readonly=\"true\" })%>
or
Keep in mind a disabled TextBox will not be submitted with a html form, but a readonly TextBox will.
MVC3 documentation shows the signature as Html.TextBox(string name, object value, object htmlAttributes) used above.