Showing posts with label TextArea and make it ReadOnly using Razor control in mvc 3. Show all posts
Showing posts with label TextArea and make it ReadOnly using Razor control in mvc 3. Show all posts

Thursday, 29 May 2014

MVC

How to focus on Textbox, TextArea and make it ReadOnly using Razor control in mvc 3 , mvc 4 ?

@Html.TextAreaFor(modelItem => item.Title, new { autofocus="" , @readonly="readonly"  })