accessing client side controls from code behinid
How can i access client side controls from code behind without adding tag runat="server"
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.
omkar mhaiskarPosted Apr 26, 2011, 6:00 AM
No, if you want only the value from the hidden field during postbacks. This works fine:
Aspx:
(You can add this control to the dom also in the client side by javascript)
Code behind:
string valueOfTheHiddenField = this.Request.Form.Get( "n_test" );
Thanks and Regardsomkar.
Jaganathan BantheswaranPosted Apr 26, 2011, 5:27 AM
For all i know, we cant access the client side controls without using "runat=server" tag.
Wait for more ans.