Nicholas V. Nicholas V. - 27 days ago 10
ASP.NET (C#) Question

Placeholder/Example text in textbox for user

What is the step to get example text to show up in an asp.net textbox.

For example, textbox w/ ID =

"textboxDate"
has
[mm/dd/yyyy]
inside it for the user to reference.

Answer

I believe you want a placeholder attribute:

<asp:TextBox ID="placeholderTextBox" runat="server" placeholder="mm/dd/yyyy"></asp:TextBox>
Comments