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.
Printable View
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.
Try creating an application variable. Then you can access it from anywhere.
you mean like a session variable?
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
thanks Hell...I ended up using a Global Variable in a module...that worked fine...
thanks..
In case you're interested, the syntax for declaring a session variable is:
Session("VarName")=VarType
for instance...
Session("UserName")=String