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" })

"I just discovered your control suite by accident and, after looking at your online demos, I was so impressed that I couldn't resist the temptation to download and put it through its paces. After several hours of experimentation, I congratulate you on a really great product. Your controls are well designed, robust and performance."

Tim Coulter

Random testimonial   All testimonials