我有一个使用ajax scripmanager > progressupdate的页面,所以我可以向用户显示“正在加载,等待..”的消息。现在,我的问题如下。我将EnablePartialRendering设置为true,主要是因为如果我将其设置为false,则不会显示包含加载内容的面板。当设置为true时,如果我想在通常设置为visible=false的行上设置文本和可见性,就不会发生这种情况。我的行没有显示。
我的“正在加载”消息只会在存储过程存在的情况下显示,如果不存在,我只需要让用户知道。
有什么建议吗?
发布于 2011-02-25 02:29:07
下面是我的.aspx页面中的一些代码
。。
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<asp:Panel ID="pnlUpdate" runat="server" >
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" >
<ProgressTemplate>
<div id="progressBackgroundFilter"></div>
<div id="processMessage" align="center" style="color:#cc0000"> Please, wait while processing...<br /><br />
<asp:Image ImageUrl="images/loading.gif" runat="server" ID="loading_gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Panel>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="Row_Error" Visible="false">
<asp:TableCell CssClass="GVI">
<asp:Label ID="labelError" runat="server" Text=""/> </asp:TableCell>
<asp:TableCell CssClass="GvItmR">
<asp:HyperLink ID="HyperLink2"ForeColor="Green" Text="Go Back" NavigateUrl="~/Menu.aspx" runat="server"/>
</asp:TableCell>
</asp:TableRow>Row_Error行是我想要显示消息的位置。
https://stackoverflow.com/questions/5108234
复制相似问题