i have 4 checkbox in a updatepanel but when i want to use them in a code behind it shows that control is not declared any help appreciated
many thanks...
Loading
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.
Priya LingePosted Aug 17, 2011, 7:43 AM
Once we add controls in updatepanel,this controls in no longer a child of our form.
It becomes a child of the panel.If we want access it from codebehind we need
to find it inside the panel first.
Example
updatepanel1.FindControl("Control_Name");
It will give us a reference to Control_Name when it is inside the panel.
Hope this will help you.
Thanks.