i have an strange issue...here..plzz chk it out..
< asp:UpdatePanel ID="OUpdatePanel" runat="server" >
<div style="position:absolute; left: 10px;top:56px; z-index: 102;">
<ajaxToolkit:TabContainer ID="tcFirst" runat="server" ActiveTabIndex="0" CssClass="ajax__tab_yuitabview-theme" AutoPostBack="true" >
<ajaxToolkit:TabPanel ID="tpFirst" runat="server" >
<ajaxToolkit:TabPanel ID="tpSecond" runat="server" >
so...INSIDE UPDATEPANEL...i have a tabcontainer and inside which i have two tabpanels...whr on each tabpanel click i8 am dynamically loading webpage user controls....
so "tpFirst" panel click i am able to successlfly load some First.ascx cntrl...and aftr clciking tat i need to make this cntrl visiblity to false and load another cntrl say result.ascx which has a button...!so whn thz bttn is clickd the server side button is nt fired instead the page_load event of First.ascx is fired...wats the prob ????
THNXX FOR THE PATIENCE...
When an updatepanel updates, it goes through the entire page lifecycle, including the _Load events of the page and any controls.
When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.
My latest ASP.NET AJAX blog entries.
so is there anyway to control it...i want the server side event of button_resultPage to be executed not the page_load of First.ascx !!!
so wat shal i do nw..???
ll give sample snippet to verify if u ask !!
Whenever a request comes, a new instance of the page that is being requested is created to serve the request even it’s a PostBack. All controls on the page are reinitialized, and there state can be restored from the ViewState in a later phase.
The dynamic controls have to be recreated again and added to the control hierarchy. Otherwise, they won’t exist in the page.
For more information about this topic, please refer to this article:
Creating Dynamic Data Entry User Interfaces[ http://msdn2.microsoft.com/en-us/library/aa479330.aspx ] Please read the article carefully.
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.