Add to collection
Expert User

Expert User

Verified

Dynamic set place holder for asp input type in C#

Dynamic set place holder for asp input type in C#

Dynamic set place holder for asp input type in C#

Txt_Name==>ASP TextBox Control

Txt_Name.Attributes.Add("placeholder", "Name to show in Placeholder value");
<asp:TextBox ID="Txt_Name" CssClass="form-control" runat="server" required></asp:TextBox>
 Txt_Name.Attributes.Add("placeholder", "Name to show in Placeholder value");
NA

References and Credits

Comments 0

  • Sorry!! No comment posted yet. Become the first user to give comment.
Add a comment

Would you like to write for w3 sniff?

Become part of an amazing group of contributors and authors and start writing for us

Join Now
<asp:TextBox ID="Txt_Name" CssClass="form-control" runat="server" required></asp:TextBox>
 Txt_Name.Attributes.Add("placeholder", "Name to show in Placeholder value");
NA
Feedback submitted successfully.