Monday, March 26, 2012

passing values from page to page

hi,
how can i pass more than one values from one page to another?
thanks> how can i pass more than one values from one page to another?
In more than one way. ;-)
QueryString, Form Post, Session Cache, Application Cache, database, Web
Services, Remoting, Messaging Services...
That's about all I can think of offhand.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"chris" <anonymous@.discussions.microsoft.com> wrote in message
news:D8BABE4C-0B79-49C0-B93A-14112D9FEB5D@.microsoft.com...
> hi,
> how can i pass more than one values from one page to another?
> thanks
There are a number of different techniques you can use, for example,
passing the values in the queryt string, or in the Context.Items
colletion during a Server.Transfer (see
http://www.odetocode.com/Articles/111.aspx for an example).
HTH,
Scott
http://www.OdeToCode.com
On Mon, 12 Apr 2004 12:21:04 -0700, "chris"
<anonymous@.discussions.microsoft.com> wrote:

>hi,
>how can i pass more than one values from one page to another?
>thanks
Chris,
An easy way to do it is to create a string like so:
string url = "ID=" + varID + "&" + "Name=" + varName;
then your hyperlink should contain something like this:
navigateURL = "destination.aspx?" + url;
Shock
"chris" <anonymous@.discussions.microsoft.com> wrote in message
news:D8BABE4C-0B79-49C0-B93A-14112D9FEB5D@.microsoft.com...
> hi,
> how can i pass more than one values from one page to another?
> thanks

0 comments:

Post a Comment