Hi Group,
I am facing a problem in ASP.net usercontrols.
Here is the Program.
When a Click a button on the usercontrol page, a panel shows up on the same user control, this panel has some textboxes and combo boxes and button say btnSave(all are ASP:controls..).
And in the codebehind I have added btnSave.attributes.add("OnClick", "return validateForm(.........) in this function I am passing the clientID of textboxes,comboboxes(contents of panel) as strings (since the serverIds and clientIds are not same in ascx(user control) pages.) And I defined this function in javascript client-side.
Here is my Problem:
When I click the btnSave the Client-side function is not called. When I opened the Viewsource I could not find any html for these Panel controls(ie textboxes,combo boxes etc.)
But.....
When I Put all these controls outside the Panel control then the Client-side script works perfectly.
So. I realize that I got this problem because of Panel control...Showind/Hidind But I mush use container control like Panel.. Please help me how to handle this issue.