I want to get clientId dynamically depending upon the iteration count e.g
var clientID = "<%=NumericTextBox" + 1 + ".ClientID %>";
var id = document.getElementById(clientID);
but if i try to use above statements to get the control it throws “;expected”, “)exppected” errors what is the proper way of getting the control?
I think you have numeric textbox control in asp.net. If you need to get the id of it, you can use
If the textbox is inside a grid control, you would usually append the number at the end or at the beginning like this
You can check the id that the framework is rendering by going to view source.