10 weber 0 Posted January 19, 2011 Report Share Posted January 19, 2011 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");). Quote Link to post Share on other sites
10 weber 0 Posted February 19, 2011 Author Report Share Posted February 19, 2011 Anybody?Maybe it could help if I didn't use HTML5 attributes in the example, as in:<asp:TextBox ID="txt1" type="password" style="color:blue;" ...> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.