aceess server control from javascript
Can I aceess server controls of asp.net from a javascript separate .js file if yes then how???
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Feb 21, 2011, 6:22 AM
document.getElementById('<%=TextBox1.ClientID%>').value
Madhu KPosted Feb 18, 2011, 2:15 AM
function testfromfile()
{
var txt=document.getElementById('TextBox1')
txt.value='newtestfailed';
alert(txt.value);
}
Call the js file in aspx page head section
Body