c# - making a text field read only -
I am using the code below to read only the text entry, but this is not read only This is why
@ Html.EditorFor (model => model.UserName, new {readonly = "readonly"})
why you use
@ Html.EditorFor (model => model UserName, new {@readonly = true}); Using or you
@ Html.EditorFor (model => model.UserName, new {@readonly = "readonly"}) Can;
Comments
Post a Comment