|
Subject:
|
how to set a global variable
|
|
Posted By:
|
ckbseng
|
Post Date:
|
6/3/2008 10:19:31 PM
|
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
|
|
Reply By:
|
planoie
|
Reply Date:
|
6/4/2008 8:44:03 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
|