Dynamic set place holder for asp input type in C#

Expert User Verified
Dynamic set place holder for asp input type in C#
<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

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

References and Credits

Comments

Leave a Comment