UpdatePanel and UpdateProgress Position Control
2012-10-16 11:33
323 查看
.content { position: relative; width:100% } .updateprogresswrapper { text-align:center; position:absolute; opacity:0.5; vertical-align: middle; z-index: 1000; height: 100% !important; width: 100% !important; overflow:hidden; background-color:gray; top:0px; bottom: 0px; left: 0px; right: 0px } .updateprogressindicator { top:50%; position: relative }
<div class="content"> <asp:UpdatePanel runat="server" ID="updpnl2" ChildrenAsTriggers="true" UpdateMode="Conditional"> <ContentTemplate> <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="updpnl2" dynamiclayout="true" DisplayAfter="0"> <progresstemplate> <div class="updateprogresswrapper"> <div class="updateprogressindicator"> <img src="../images/ajax-loader_2.gif"/> </div> </div> </progresstemplate> </asp:updateprogress> ....
The source of Html page will like
<div class="content"> <div id="MainContent_updpnl2"> <div id="MainContent_UpdateProgress1" style="display: none; " role="status" aria-hidden="true"> <div class="updateprogresswrapper"> <div class="updateprogressindicator"> <img src="../images/ajax-loader_2.gif"> </div> </div>
So put UpdateProgress inside UpdatePanel can easily control UpdateProgress to only cover the UpdatePanel instead of the whole web page.
相关文章推荐
- 从Atlas到Microsoft ASP.NET AJAX(8) - UpdatePanel Control
- OpenSIPS and Control Panel Install Guide
- AjaxControlToolkit 微软出的ajax.net 工具使用教程七 使用UpdatePanel控件(二)
- ASP.NET AJAX Roadmap--Server Controls (7): UpdatePanel Control Overview
- 简单地过一下五个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)
- Loading UserControl Dynamically in UpdatePanel 【transfer]
- updatePanel的triggle导致无法加载updateProgress解决方案
- Crystal Report Export and Print button not working inside UpdatePanel (水晶报表放入UpdatePanel后不能打印导出)
- ASP.NET AJAX(1) - 简单地过一下每个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)
- UpdatePanel's and Response.Redirect
- Sprinig.net 双向绑定 Bidirectional data binding and data model management 和 UpdatePanel
- 第五篇: UpdatePanel 控件--RegisterAsyncPostBackControl方法
- ASP.NET AJAX Roadmap--Server Controls (9): UpdateProgress Control Overview
- AJAX--UpdateProgress设置CSS元素POSITION的使动画居中 & loading的Info
- UpdatePanel control
- 第五篇: UpdatePanel 控件--RegisterAsyncPostBackControl方法
- ASP.NET AJAX Roadmap--Server Controls (10): UpdateProgress Control Tutorials
- ASP.NET AJAX(1) - 简单地过一下每个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)
- An extender can't be in a different UpdatePanel than the control it extends
- ASP.NET AJAX - 简单地过一下每个控件(ScriptManager、ScriptManagerProxy、UpdatePanel、 UpdateProgress和Timer)