Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2015, 06:57 AM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rashesh_shah Send a message via MSN to rashesh_shah
Post add text in label

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Center Text within Label testsubject Visual Studio 2005 5 October 15th, 2011 12:59 PM
How to create label with vertical text? Dragonist Classic ASP Basics 17 September 19th, 2008 02:30 PM
Dynamic Text in Label funnylearning .NET Framework 2.0 2 September 18th, 2006 12:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.