943,908 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 4055
  • ASP.NET RSS
Feb 12th, 2009
0

How to set Global Variable

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
nokomoli is offline Offline
26 posts
since Nov 2007
Feb 13th, 2009
0

Re: How to set Global Variable

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
Reputation Points: 11
Solved Threads: 9
Light Poster
Rogachev is offline Offline
44 posts
since Nov 2008
Feb 19th, 2009
0

Re: How to set Global Variable

Click to Expand / Collapse  Quote originally posted by Rogachev ...
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.
Reputation Points: 10
Solved Threads: 0
Light Poster
nokomoli is offline Offline
26 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: not aware of
Next Thread in ASP.NET Forum Timeline: dropdownlist





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC