I have a text box inside gridview. I need to get the id of textbox in javascript. When i use like this ‘<%= txtNewQty.ClientID %>’; it gives the compilation error.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
txtNewQtydoes not exist at the page level and therefore you will not be able to reference it in that manner. you’ll have to do something like generate the js on the server side or work your way down from the gridview element. post some code and a description of what you want to happen.