Print Page | Close Window

How to Declare & Use global Varaible

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=12437
Printed Date: 29 March 2026 at 8:42am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to Declare & Use global Varaible
Posted By: jayeshsh
Subject: How to Declare & Use global Varaible
Date Posted: 04 November 2004 at 2:21am
Can anyone please tell me how to declare Global varirables in asp.net

I am trying to pass varaibles between forms but cant do it

please help me I need to complete a project

regards



Replies:
Posted By: Mart
Date Posted: 04 November 2004 at 11:15am

It depends on what the variables are, if you want to share data on a per user basis use session variables( session("YourKey") = "Your value" ), if you want to share data at the application level use application variables ( application("YourKey") = "Your value" )




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net