How to set Global Variable

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2007
Posts: 26
Reputation: nokomoli is an unknown quantity at this point 
Solved Threads: 0
nokomoli nokomoli is offline Offline
Light Poster

How to set Global Variable

 
0
  #1
Feb 12th, 2009
Hi Guys,

i'm newbie in .net area. now i confuse one things is :

i have a variabel is use at all pages in my web site. so how i set this variable in one page, so that every time when i need this variable, i can use this and no need declare again this variable and assign same value in this variable.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 16
Reputation: Rogachev is an unknown quantity at this point 
Solved Threads: 2
Rogachev Rogachev is offline Offline
Newbie Poster

Re: How to set Global Variable

 
0
  #2
Feb 13th, 2009
Hello.
You can use few different options. But more common is using Global.asax file. You can define variables for session and you WEB-application.

Cheers
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 26
Reputation: nokomoli is an unknown quantity at this point 
Solved Threads: 0
nokomoli nokomoli is offline Offline
Light Poster

Re: How to set Global Variable

 
0
  #3
Feb 19th, 2009
Originally Posted by Rogachev View Post
Hello.
You can use few different options. But more common is using Global.asax file. You can define variables for session and you WEB-application.

Cheers
Thanks for your reply. Can you provide more details due to i still blur that how to use global variable.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC