Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 3rd, 2008, 10:19 PM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old June 4th, 2008, 08:44 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
comapring global variable value to local variable amhicraig XSLT 6 December 5th, 2007 12:16 PM
Object variable or With block variable not set tparrish Classic ASP Databases 0 May 21st, 2005 06:48 AM
Object variable or with block variable not set spacy ASP.NET 1.x and 2.0 Application Design 0 September 21st, 2004 12:19 AM
How to set a global variable? Ciarano VB How-To 2 March 16th, 2004 01:51 PM





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