Hi,
how can add text in label and show on web page at same time when button clicked function trigger.
below r my calcuation.
i want to see a status of user page of how a process going. and also help if some error in steps.
Code:
<asp:UpdatePanel runat="server" ID="updpnlReport" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label runat="server" ID="lblStatus" Text="default value ..." />
<asp:Button Text="Generate report" runat="server" ID="btnReport" OnClick="btnReport_Click" />
</ContentTemplate>
</asp:UpdatePanel>
// this is code of button click
protected void btnClientApproval_Click(object sender, EventArgs e)
{
lblStatus.Text = "start calc ...";
updpnlReport.Update();
FClass fCL = new FClass();
lblStatus.Text = "f Cal";
updpnlReport.Update();
fCL.Cacl();
lblStatus.Text = "report ...";
updpnlReport.Update();
fCL.GenReport();
lblStatus.Text = "end cal";
updpnlReport.Update();
}
any one help me
when i set this than i show only last line of
"end cal"
i understand this is small process but Calc() process r take long time and than after GenReport() r also take time so that's y i want.
with regards,
rashesh