ASP.NET MVC Interface Controls - Textbox -
WatermarkText property


 



Use the WatermarkText property to set a default text for the text box.
The watermark text is displayed as long as the text box is empty.


C#
Html.Obout(new OboutTextBox("txt1") { WatermarkText = "Username" })