954,577 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to set Global Variable

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.

nokomoli
Light Poster
26 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

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

Rogachev
Light Poster
44 posts since Nov 2008
Reputation Points: 11
Solved Threads: 9
 

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.

nokomoli
Light Poster
26 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You