如何关闭modalpopup。在gridview绑定之后 [英] How to close modalpopup. after gridview bind

查看:67
本文介绍了如何关闭modalpopup。在gridview绑定之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dearl All,





我在gridview中过滤数据和绑定。然后我想在弹出窗口中显示等待图像,直到gridview是绑定如何做。这意味着必须关闭gridview modalpopup。

解决方案

http://aspsnippets.com/Articles/Display-loading-progress-image-when-Page-Loads- or-does-do-PostBack-using-ASPNet.aspx [ ^ ]


你可以使用Ajax UpdatePanel和UpdateProgress激活每个这样的加载器控件回发。



 <   asp:ScriptManager     runat   =  server    ID   =  sm1    >  <   / asp:ScriptManager  >  
< ; asp:UpdateProgress runat = server id = PageUpdateProgress11 >
< ProgressTemplate >
< DIV id = IMGDIV align < span class =code-keyword> = center valign = middle runat = server class = overlay >

< img src = images / loader.gif border = 0 / > < br / >

< / DIV >

< / ProgressTemplate >
< / asp:UpdateProgress >



 < ;   asp:UpdatePanel     runat   =  server    ID   =  updMLO >  <   ContentTemplate  >  
< asp:DropDownList runat = 服务器 > < / asp:DropDownList >
< asp:GridView runat = server > ....... < / asp:GridView >
< / ContentTemplate > < / asp:UpdatePanel >


Dearl All,


I am filtering data and binding in gridview.Then i want to show waiting image on popup untill gridview is binding.how to do that.it means after gridview modalpopup must be closed.

解决方案

http://aspsnippets.com/Articles/Display-loading-progress-image-when-Page-Loads-or-does-PostBack-using-ASPNet.aspx[^]


you can use Ajax UpdatePanel and UpdateProgress to activate loader control in every such postbacks.

<asp:ScriptManager runat="server" ID="sm1" ></asp:ScriptManager>
<asp:UpdateProgress runat="server" id="PageUpdateProgress11">
            <ProgressTemplate>
               <DIV id="IMGDIV" align="center" valign="middle" runat="server" class="overlay">

                    <img src="images/loader.gif"  border="0"/><br />

                   </DIV>

            </ProgressTemplate>
        </asp:UpdateProgress>


<asp:UpdatePanel runat="server" ID="updMLO"><ContentTemplate>
                                 <asp:DropDownList runat="server"></asp:DropDownList>
                               <asp:GridView runat="server">.......</asp:GridView>
                                  </ContentTemplate></asp:UpdatePanel>


这篇关于如何关闭modalpopup。在gridview绑定之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆