How to make the textarea in MVC 2.0 to readonly having css class property to it.

Posted by Mahendrabasutkar under Others on 10/19/2011 | Points: 10 | Views : 2567 | Status : [Member] | Replies : 0
Hi All,


How to make the textarea in MVC 2.0 to readonly having css class property to it.

The below is my code, please specify what wrong in it,
Its not working.
<%=Html.TextAreaFor(model => model.Content, new { @class = "user_txtarea_border", @readonly = "readonly"})%>


Thanks,
Naresh




Responses

(No response found.)

Login to post response