开发者

ajax loader in asp.net

I'm using the AjaxToolkit in asp.net project c# code. I have a script managet and an update pannel in my page. It all works perfect. The only problem is that I can't figure out how to show the Ajax loader gif while the request is processed.

Any 开发者_开发技巧idea?

TY


se updateprogress of tool kit :hope this will help you

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


If you use some styles to Div Loader will come at the center of the screen..so it looks good. use this

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜