Jump to content

adding HTML attributes to ASP.NET controls


10 weber

Recommended Posts

Is it possible to add HTML attributes to asp.net controls directly? i.e. as control attributes (<asp:TextBox ID="txt1" pattern="\w{2,}( \w{2,})*" required="required" ...>) instead of using JavaScript (document.getElementById("txt1").setAttribute("pattern","\w{2,}( \w{2,})*");document.getElementById("txt1").setAttribute("required","required");).

Link to comment
Share on other sites

  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...