|
 |
aspx_beginners thread: global Variable
Message #1 by "eyetalion" <eyetalion1@h...> on Tue, 25 Feb 2003 20:00:00
|
|
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.
Message #2 by Mark Eckeard <meckeard2000@y...> on Tue, 25 Feb 2003 12:51:54 -0800 (PST)
|
|
I think you need to declare it as a application
variable, like this:
Application("OrgBidDate") = SomeDate
Mark
--- eyetalion <eyetalion1@h...> wrote:
> 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.
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
Message #3 by "Alex Smotritsky" <alex.smotritsky@v...> on Tue, 25 Feb 2003 22:42:17 -0500
|
|
Even though vb.net is not case sensitive (I think), case is important
for global variables(I think).
Try:
OrgBidDate = txtBidOpenDate.Text
-----Original Message-----
From: Mark Eckeard [mailto:meckeard2000@y...]
Sent: Tuesday, February 25, 2003 3:52 PM
To: aspx_beginners
Subject: [aspx_beginners] Re: global Variable
I think you need to declare it as a application
variable, like this:
Application("OrgBidDate") = SomeDate
Mark
--- eyetalion <eyetalion1@h...> wrote:
> 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.
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
Message #4 by "Rohit Arora" <rohit_arora@i...> on Wed, 26 Feb 2003 09:33:48 +0530
|
|
u hv to make form object over there on the another page..
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: eyetalion [mailto:eyetalion1@h...]
Sent: Tuesday, February 25, 2003 8:00 PM
To: aspx_beginners
Subject: [aspx_beginners] 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.
Message #5 by "eyetalion" <eyetalion1@h...> on Wed, 26 Feb 2003 15:08:54
|
|
thanks for the help guys...I ended up declaring a global variable in a
module, which worked fine...
thanks
|
|
 |