0
功能C#ASP.net站点中间的Ajax面板更新。功能中间的Ajax面板更新
这是按钮点击。我希望在函数的其余部分继续之前将LbError.Text更新为“” 。这是我现在的代码。
protected void BUpload_Click(object sender, EventArgs e)
{
LbError.Text = "";
UpdatePanel1.Update(); //// need it to update here before it moves on
but it waits till the end to update the lablel
Exicute functions.....
.......
.......
}
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<contenttemplate>
<asp:Label ID="LbError" runat="server" CssClass="failureNotification" Text=""></asp:Label>
<br /><br />
<br /><br />
<asp:TextBox ID="NewData" runat="server"></asp:TextBox><br />
then click
<asp:Button ID="BUpload" runat="server" Text="Upload New Data"
onclick="BUpload_Click"/><br />
我试过的东西包括有另一个UpdatePanel只是和相同的结果。任何帮助将不胜感激。