Hi Everyone,
I am new in asp.net and facing a strange issue. I have textBox inside gridView.
I want to get the textBox value using JavaScript. I have gone through the solution available in internet and tried below line.
var value = document.getElementById("<% = txtNewQuizID.ClientID %>").value;
For now leave about getting the value, after this line, the page itself is not opening. its showing below message.
Uh-oh, something went wrong! Error Code: 500
I tried to find out whats wrong in this line, so I commented the line but still same issue. Then in commented line, i have removed "<%" and "%>" then page opens properly. So the issue is because of the <% and %>. Please tell solution how to get value of textBox. and whats wrong in above line which i tried.