tags:

views:

66

answers:

2

How do I make a textbox read only in mvc? I have included the following snippet, but it`s not working.

 <%=Html.Textbox("test", "test", new { style="border: 0px; width:280px" ;readonly=true}%>
+2  A: 
<%=Html.Textbox("test", "test", new { style="border: 0px; width:280px", @readonly =  "readonly"}%>
George Stocker
Dangit, forgot the keyword...
Will