开发者

readonly in asp.net mvc

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}%>


<%=Html.Textbox("test", "test", new { style="border: 0px; width:280px", @readonly =  "readonly"}%>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜