ajax panel update during the middle of a function C# ASP.net site
- by user2615302
ajax panel update during the middle of a function C# ASP.net site
This is the button click. I would like to update LbError.Text to ""
before the rest of the function continues. This is my current code.
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 />
Things i have tried include have another UpdatePanel just and same results. any help would be greatly appreciated.