Tuesday 19 July 2016

How to create watermark text for textbox html control in asp.net MVC4 in razor view?



@Html.TextBox("Name", @Model.Name, new { placeholder = "Enter name" })

Or

@Html.TextBoxFor(model => model.Name, new { placeholder = "Enter name" })

No comments:

Post a Comment

Note: only a member of this blog may post a comment.