|
-
Feb 25th, 2003, 02:37 PM
#1
Thread Starter
Frenzied Member
Global Variable
I'm trying to declare a Global variable in my Global.aspx page:
Public OrgBidDate as Date
then on another page I have:
orgBidDate = txtBidOpenDate.Text
but I get an error that orgBidDate is not declared.
-
Feb 25th, 2003, 03:21 PM
#2
PowerPoster
Try creating an application variable. Then you can access it from anywhere.
-
Feb 25th, 2003, 03:23 PM
#3
Thread Starter
Frenzied Member
you mean like a session variable?
-
Feb 26th, 2003, 02:42 PM
#4
PowerPoster
Yes, like a session variable, but it is accessable to the whole app (many different sessions) instead of to just one user.
http://msdn.microsoft.com/library/de...ationstate.asp
-
Feb 26th, 2003, 02:47 PM
#5
Thread Starter
Frenzied Member
thanks Hell...I ended up using a Global Variable in a module...that worked fine...
thanks..
-
Feb 26th, 2003, 04:21 PM
#6
Member
In case you're interested, the syntax for declaring a session variable is:
Session("VarName")=VarType
for instance...
Session("UserName")=String
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|