I\'m trying to find the best way to deal with the way that ASP.NET prepends a value to any element that is created with runat=\"server\", without having to reso
runat=\"server\"
The right answer is as follow
var txt1 = $('#<%= txt1.ClientID %>'); $(txt1).click(function () { alert('hi'); });
her I create a new variable on the javascript which is reference to the control based on its rendered client ID