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).
I'm a professional components designer, web developer, UX engineer and 3d designer as well, I'm 4 years experienced .net software engineer and 7 years experienced 3d designer using 3D Max. I'm very interested in RIA technologies, prototyping and UX engineering.
Senior .Net Software Engineer