Accessing client side controls from code behinid
How can i access client side controls from code behind without adding tag runat="server"
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Apr 26, 2011, 1:27 AM EDT
For all i know, we cant access the client side controls without using "runat=server" tag.
Wait for more ans.
omkar mhaiskar84 reputationPosted Apr 26, 2011, 2:00 AM EDT
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.