Asp.net ScriptManager和EnablePartialRendering
我有一个使用ajax scripmanager>progressupdate的页面,因此我可以向用户显示“正在加载,等待…”的消息。现在,我的问题如下。我将EnablePartialRendering设置为true,主要是因为如果我将其设置为false,则加载内容的面板不会显示。 当设置为true时,如果我想在通常设置为visible=false的行上设置文本和可见性,那么它就不会发生。我的行不显示。Asp.net ScriptManager和EnablePartialRendering,asp.net,asp.net-ajax,scriptmanager,Asp.net,Asp.net Ajax,Scriptmanager,我有一个使用ajax scripmanager>progressupdate的页面,因此我可以向用户显示“正在加载,等待…”的消息。现在,我的问题如下。我将EnablePartialRendering设置为true,主要是因为如果我将其设置为false,则加载内容的面板不会显示。 当设置为true时,如果我想在通常设置为visible=false的行上设置文本和可见性,那么它就不会发生。我的行不显示。 我的“加载”消息只会在存储过程存在时显示,如果不存在,我只需要让用户知道 有什么建议吗?这是我
我的“加载”消息只会在存储过程存在时显示,如果不存在,我只需要让用户知道
有什么建议吗?这是我的.aspx页面上的一些代码
。
请稍候,正在处理…
行\u Error行是我要显示消息的地方。您可以发布一些代码吗?您是否在更改后在面板上调用
Update()
?Monica,如果您想添加其他信息,您可以编辑您的帖子并添加到其中。
</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>