Monday, March 26, 2012

Sharing variables between pages...

hello all,
how can i share variables between asp.net pages without using the session or
anything that has got to do with the global file. can i use properties for
this? 1 page calling the other to accept the value?
Asha GillHere's a way to pass values between .aspx pages.
http://authors.aspalliance.com/kenc/passval.aspx
"Asha Gill" <anonymous@.discussions.microsoft.com> wrote in message
news:FEC6EEA5-01B2-414A-944D-8F2ADABDB7F2@.microsoft.com...
> hello all,
> how can i share variables between asp.net pages without using the session
> or anything that has got to do with the global file. can i use properties
> for this? 1 page calling the other to accept the value?
>
> Asha Gill
Yes properties is the way to go. Ken's excellent example shows you the ideal
way to do this.
Peter Wright
Author of ADO.NET Novice To Pro, from Apress Inc.
www.petewright.org
_____________________________
"Asha Gill" <anonymous@.discussions.microsoft.com> wrote in message
news:FEC6EEA5-01B2-414A-944D-8F2ADABDB7F2@.microsoft.com...
> hello all,
> how can i share variables between asp.net pages without using the session
or anything that has got to do with the global file. can i use properties
for this? 1 page calling the other to accept the value?
>
> Asha Gill

0 comments:

Post a Comment