New answers tagged


You can use ASP controls in your JS file using below mentioned code. For example, If you want to access button in your JS file than you can use document.getElementById('<%=btnXXXX.ClientID%>') ASP control's IDs change on runtime so you have to get those controls using their id on client side like mentioned above.

Top 50 recent answers are included