Re: Updating Label on a WebControl

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I set LABEL.Text = MyVariable to show the string on the StatusBar !!!

Greez The Filzmeister


Patrick schrieb:
Hi Christian,

you should not use a static method to display dynamic contents on a control. What are you doing with the "MyVariable" in your code?

cu patrick

"Christian Filzwieser" wrote:


Hy
I created a WebControl called StatusBar with a static function

public static void SetText(string text) { MyVariable = Text }

and on Page Load I set MyVariable to the Label in my WebControl.
On my Webform i load data form SqlServer into a grid and i want to set the Recordcount in the Statusbar.


My Question:
Is there any way to refresh the StatusBar ???

.



Relevant Pages

  • RE: Updating Label on a WebControl
    ... you should not use a static method to display dynamic contents on a control. ... > and on Page Load I set MyVariable to the Label in my WebControl. ... > On my Webform i load data form SqlServer into a grid and i want to set ... > the Recordcount in the Statusbar. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Updating Label on a WebControl
    ... > I set LABEL.Text = MyVariable to show the string on the StatusBar!!! ... >>>and on Page Load I set MyVariable to the Label in my WebControl. ... >>>On my Webform i load data form SqlServer into a grid and i want to set ...
    (microsoft.public.dotnet.framework.aspnet)
  • Updating Label on a WebControl
    ... and on Page Load I set MyVariable to the Label in my WebControl. ... On my Webform i load data form SqlServer into a grid and i want to set the Recordcount in the Statusbar. ...
    (microsoft.public.dotnet.framework.aspnet)