How will you get the value of ASP.Net control in Javascript ?

Thursday, August 6, 2009


You can call the ASP.NET control from Javascript using the document.getElementById method.
Ex:
Let txtEmployeeName be a Textbox, then
var tEmp = document.getElementById('<%=txtEmployeeName.ClientID%>');


www.codecollege.NET

0 comments

Post a Comment

www.codecollege.NET

Blog Widget by LinkWithin