But this way is very poor and not flexible at all.
var txtBox = document.getElementById('<%=txtName.ClientID%>');
<%=%> means that you can write any C# code inside them, so this way is very easy and flexible for anybody.
- The second one: is using the encoding techniques to get the new generated ID programmatically; any ASP server control contains a property called
- From Tools menu, choose Internet Options, then Advanced Tab.
- Then under Browsing, uncheck the disable script debugging (Internet Explorer) & (Other).