Connecting Tech Pros Worldwide Forums | Help | Site Map

passing values from page to page

chris
Guest
 
Posts: n/a
#1: Nov 18 '05
hi
how can i pass more than one values from one page to another

thanks

Kevin Spencer
Guest
 
Posts: n/a
#2: Nov 18 '05

re: passing values from page to page


> 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...[color=blue]
> hi,
> how can i pass more than one values from one page to another?
>
> thanks[/color]


Scott Allen
Guest
 
Posts: n/a
#3: Nov 18 '05

re: passing values from page to page


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:
[color=blue]
>hi,
>how can i pass more than one values from one page to another?
>
>thanks[/color]

Shock
Guest
 
Posts: n/a
#4: Nov 18 '05

re: passing values from page to page


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...[color=blue]
> hi,
> how can i pass more than one values from one page to another?
>
> thanks[/color]


Closed Thread