ASP Materials
Pages
Labels
Ajax
ASP.NET
Bootstrap
C Sharp
C Tips
GridView
Interview
Javascript
JQuery
Linq
MVC
Sql
WCF
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.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.