Sunday, November 28, 2010

Razor, MVC3 - a readonly textbox

Code is:

@Html.TextBoxFor(model => model.Fields[i].TheField, new { @readonly = true })

2 comments:

  1. There doesn't seem to be any server-side check with this solution?

    ReplyDelete
  2. Is this safe? There doesn't seem to be any server-side check.

    ReplyDelete