homepage Welcome to WebmasterWorld Guest from 54.197.171.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Response write vs Text as a lable
ASP.net hell
chris_f




msg:908440
 2:10 pm on May 13, 2002 (gmt 0)

This is driving me crazy. It's something so simple but it doesn't work.

WHY?

I have an application variable called 'CurrentSessions'. In this is the number of session the web server has open. I wish to display this on a page a an asp label. I have declare a label called 'NumOfSess'. I have used

NumOfSess.Text = Application("CurrentSessions")

to populate the label. However, when I run the app the label is blank. To check that the variable is passed correctly I did

Response.Write(NumOfSess.Text)

and the returns the value correctly.

Can you please tell me why

<asp:Label ID="NumOfSess" Runat="server" />

is not picking up the value. If you need I'll sticky you the code. However, it's another persons work in progress so there's some stuff that is commented out because it doesn't work.

Chris

 

korkus2000




msg:908441
 5:17 pm on May 13, 2002 (gmt 0)

From what you are showing it should work. Sticky me.

Are you calling the function Page_Init() or Page_Load()?

Filipe




msg:908442
 10:12 pm on May 13, 2002 (gmt 0)

What language are you using?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved