代码之家  ›  专栏  ›  技术社区  ›  Itay.B

asp.net中的ajax加载程序

  •  2
  • Itay.B  · 技术社区  · 16 年前

    我的页面中有一个脚本管理器和一个更新面板。一切都很完美。

    你知道吗?

    泰

    2 回复  |  直到 16 年前
        1
  •  2
  •   Pranay Rana    16 年前

    se更新工具包进展:希望这能帮助你

    <asp:updatepanel id="ResultsUpdatePanel" runat="server">    
    <contenttemplate>
    
    <div style="text-align:center;">
        <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="ResultsUpdatePanel" dynamiclayout="true">
                            <progresstemplate>
    
                               <img src="support/images/loading.gif">
    
                            </progresstemplate>
                        </asp:updateprogress>
    
                        </div>
    
     //your control code
    </contenttemplate>
    </asp:updatepanel>
    
        2
  •  0
  •   kapa    13 年前

    如果你用一些样式来Div,加载程序会出现在屏幕的中央,所以看起来不错。 用这个

    <div style="text-align:center;position:fixed;left:40%;top:40%;padding-top:10px;">
      <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="ResultsUpdatePanel" dynamiclayout="true">
          <progresstemplate>
             <asp:Image ID="LoaderImage" runat="server" ImageUrl="~/images/loading.gif" />
          </progresstemplate>
      </asp:updateprogress>
    </div>