ISSUE WITH Control's behaviour inisde UPDATE PANEL - server side Button click event not firing inside (tabconatiner-tabpanel-usercontrol-button control) !!

 hii evry1..,

             i have an strange issue...here..plzz chk it out..

          
 

         aspx page:

            < asp:UpdatePanel ID="OUpdatePanel" runat="server" >
                <ContentTemplate>
          
            <div style="position:absolute; left: 10px;top:56px; z-index: 102;">

                  
                    </div>

                    <ajaxToolkit:TabContainer ID="tcFirst" runat="server"  ActiveTabIndex="0" CssClass="ajax__tab_yuitabview-theme" AutoPostBack="true" >
              
                        <ajaxToolkit:TabPanel ID="tpFirst" runat="server"   >
                          <ContentTemplate>
                            </ContentTemplate>
                        </ajaxToolkit:TabPanel>
           
                        <ajaxToolkit:TabPanel ID="tpSecond" runat="server"   >
                            <ContentTemplate>
                            </ContentTemplate>
                        </ajaxToolkit:TabPanel>
               
                       
                    </ajaxToolkit:TabContainer>
                </ContentTemplate>
                <Triggers>
                <asp:AsyncPostBackTrigger ControlID="tcFirst" 
                 />
                </Triggers>
            </asp:UpdatePanel> 
 

     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...


 

0
Softy
1/16/2008 1:57:52 PM
asp.net.ajax_control_toolkit 17816 articles. 1 followers. Follow

3 Replies
2077 Views

Similar Articles

[PageSpeed] 51
Get it on Google Play
Get it on Apple App Store

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.
0
DisturbedBuddha
1/16/2008 2:59:36 PM

 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 !!

thanxxxxxxxx 

 

0
Softy
1/17/2008 2:46:35 AM

Hi Softy,

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.

Best regards,

Jonathan

 


Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
0
Jonathan
1/22/2008 10:08:36 AM
Reply:

Web resources about - ISSUE WITH Control's behaviour inisde UPDATE PANEL - server side Button click event not firing inside (tabconatiner-tabpanel-usercontrol-button control) !! - asp.net.ajax_control_toolkit

Resources last updated: 12/6/2015 10:57:17 PM