p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 3.5 Basics (http://p2p.wrox.com/forumdisplay.php?f=351)
-   -   how to set a global variable (http://p2p.wrox.com/showthread.php?t=68577)

ckbseng June 3rd, 2008 10:19 PM

how to set a global variable
 
i'm a fresh programmer, i facing a problem that using asp.net with VB language to develop the page.
here to ask the professional programmer to help me setting in how to set the global variable in the website that can view in other webpage
example like i develop my own login webpage, if i successful login i can view my username in others pages.
can somebody help,plz
if can please show the step-by-step because i'm quite stupid and newbie in programming, thanks


planoie June 4th, 2008 08:44 AM

No need to berate yourself. We were all new once.

You need to read up on the Authentication system of ASP.NET (for example, Forms Authentication). Once you have logged in, this information is available to you. It's managed automatically.

Generally, any data you want to carry around from page to page that is user specific would go into the Session collection. You typically don't need to use globals in the classic sense of the term.

-Peter
compiledthoughts.com


All times are GMT -4. The time now is 11:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.