2013-03-23 2 views
0

내부에 표시됩니다. 예제 코드 아래에 추가했습니다. 나는 그것을 보여주기 위해 뭔가를 놓쳤다.아약스의 UpdateProgress 지금은 내가이 로딩 이미지를 표시하게 관리 할 수있는 TabContainer 내부 UpdateProcess이으로 VisualStudio 2010 VB</p> <p>를 사용 해요있는 TabContainer

<asp:TabContainer ID="TabSelection" runat="server" ActiveTabIndex="0" 
     Width="1126px" Font-Bold="True" TabStripPlacement="Top" 
     style="margin-right: 34px; margin-top: 49px;" AutoPostBack="True"> 
    <asp:TabPanel runat="server" HeaderText="Scorecard3" ID="TabScorecard3"> 
    <HeaderTemplate> 
    Scorecard 
    </HeaderTemplate> 

     <ContentTemplate> 

<asp:UpdateProgress ID="UProc_Scorecard" runat="server" AssociatedUpdatePanelID="UP_Scorecard" 
    DisplayAfter="1"> 
<ProgressTemplate> 
    <asp:Image id="wait" runat="server" ImageUrl="~/Images/wait3.gif" /> 
</ProgressTemplate> 
</asp:UpdateProgress> 

     <asp:UpdatePanel ID="UP_Scorecard" runat="server"> 
     <ContentTemplate> 

     … 3 Grids and 3 tables … 

     </ContentTemplate> 
     <Triggers> 
     <asp:AsyncPostBackTrigger ControlID="DateSelection" 
       EventName="SelectedIndexChanged"/> 
       <asp:AsyncPostBackTrigger ControlID="GroupSelection" 
       EventName="SelectedIndexChanged"/> 
     </Triggers> 
     </asp:UpdatePanel> 

    </ContentTemplate> 
    </asp:TabPanel> 
</asp:TabContainer> 

감사

나는의 UpdateProgress하고있는 TabContainer 외부 updatePannel를 이동하여 문제를 해결 한

답변

0

도 나는 다시 게시에게 탭이 선택 될 때마다 방지하기 위해있는 TabContainer의 AutoPostBack을 제거. 나는 이것이 누군가를 돕기를 바랍니다. 아래 예제 코드 ...

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> 
</asp:ToolkitScriptManager> 

<asp:UpdateProgress ID="UProc_TabContainer" runat="server" AssociatedUpdatePanelID="UP_TabContainer" 
    DisplayAfter="1"> 
    <ProgressTemplate> 
     <div id="dvProgress" runat="server" style="position: absolute; top: 300px; left: 450px; 
      text-align: center;"> 
      <asp:Image ID="wait" runat="server" ImageUrl="~/Images/wait3.gif" Height="120px" 
       Width="128px" /> 
     </div> 
    </ProgressTemplate> 
</asp:UpdateProgress> 

<asp:UpdatePanel ID="UP_TabContainer" runat="server"> 
    <ContentTemplate> 
     <asp:Panel ID="Panel1" runat="server" BackColor="#66FFFF"> 

         <asp:DropDownList ID="DateSelection" runat="server" AutoPostBack="True" Height="21px" 
          Width="134px"> 
         </asp:DropDownList> 

         <asp:DropDownList ID="GroupSelection" runat="server" AutoPostBack="True" Height="21px" 
          Width="134px" > 
         </asp:DropDownList> 

     </asp:Panel> 

     <asp:TabContainer ID="TabSelection" runat="server" ActiveTabIndex="0" Width="1126px" 
      Font-Bold="True" TabStripPlacement="Top" 
      Style="margin-right: 34px; margin-top: 49px;"> 
      <%-- AutoPostBack="True"--%> 
      <asp:TabPanel runat="server" HeaderText="Scorecard3" ID="TabScorecard3"> 
       <HeaderTemplate> 
        Scorecard 
       </HeaderTemplate> 
       <ContentTemplate> 
        … grids and charts … 
       </ContentTemplate> 
      </asp:TabPanel> 
      <asp:TabPanel runat="server" HeaderText="Documentation" ID="TabInfo"> 
       <ContentTemplate> 
        … documentation … 
       </ContentTemplate> 
      </asp:TabPanel> 
      <asp:TabPanel ID="Project" runat="server" HeaderText="Project"> 
       <ContentTemplate> 
        … documentation… 
       </ContentTemplate> 
      </asp:TabPanel> 
     </asp:TabContainer> 
    </ContentTemplate> 
</asp:UpdatePanel>