我不知道这是否可能,但我想知道在使用Ajax时,是否有一种方法可以更改UpdateProgress中的消息。我试着把消息放在标签里,但由于某种原因,我不能这样做,所以我想知道你能怎么做。下面是我所拥有的。
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
Logining In...
</ProgressTemplate>
</asp:UpdateProgress>发布于 2013-01-31 03:46:19
就像这样做
页面:
<asp:UpdateProgress ID="UpdateProgress1" runat="server" ClientIDMode="Static"> <ProgressTemplate> <div id="overlay"> <asp:Label ID="lbl_wait" runat="server" clientIDMode="Static">Logining In...</asp:Label> </div> </ProgressTemplate> </asp:UpdateProgress>
代码:
(UpdateProgress1.FindControl("lbl_wait") as System.Web.UI.WebControls.Label).Text = "Logged In...";
https://stackoverflow.com/questions/9943442
复制相似问题