本文介绍了在AJAX TabContainer中调用UserControl的pageLoad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个AJAX TabContainer,它在每个TabPanel中包含UserControls。更改选项卡后,我想调用UserControl的Page_Load事件,如下所示:



I have a AJAX TabContainer which in turn contains UserControls in each TabPanel. When the tab is changed i want to call the Page_Load event of the UserControl, as shown below:

<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" AutoPostBack="true">
                            <ajaxToolkit:TabPanel ID="pnlEmployeeInfo" runat="server">
                                <HeaderTemplate>
                                    Basic Info.
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <uc1:EmpInfo ID="EmpInfo1" runat="server" />
                                </ContentTemplate>
                            </ajaxToolkit:TabPanel>
                            <ajaxToolkit:TabPanel ID="pnlSalary" runat="server">
                                <HeaderTemplate>
                                    Salary</HeaderTemplate>
                                <ContentTemplate>
                                    <uc2:Salary ID="Salary1" runat="server" />
                                </ContentTemplate>
                            </ajaxToolkit:TabPanel>
                            <ajaxToolkit:TabPanel ID="pnlAppraisal" runat="server">
                                <HeaderTemplate>
                                    Appraisals</HeaderTemplate>
                                <ContentTemplate>
                                    <uc3:Appraisal ID="Appraisal1" runat="server" />
                                </ContentTemplate>
                            </ajaxToolkit:TabPanel> </ajaxToolkit:TabContainer>





任何人都可以建议如何做到这一点......



Can anybody suggest how this can be done...

推荐答案


这篇关于在AJAX TabContainer中调用UserControl的pageLoad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 21:43