Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: redirect..


Message #1 by "bimalka" <bimalkaw@a...> on Sun, 11 Aug 2002 17:52:45
I have an application that contains two froms (two ASP.NET page
objects) when I execute redirection from page1 to page2, I need to send 
some of the variables declared inside page1 to page2 (they should not be 
static variables) can some one tell me how I can do this?

thanks

B.
Message #2 by "Carl E. Olsen" <carl-olsen@m...> on Sun, 11 Aug 2002 11:57:00 -0500
Use an <input type="hidden"> and a value of Request.Form("userinput")
inside your form on the second page.  When the second page is submitted,
the value in the hidden field will be sent to the response page.

Carl Olsen
http://carl-olsen.com/


> -----Original Message-----
> From: bimalka [mailto:bimalkaw@a...]
> Sent: Sunday, August 11, 2002 5:53 PM
> To: aspx_beginners
> Subject: [aspx_beginners] redirect..
> 
> I have an application that contains two froms (two ASP.NET page
> objects) when I execute redirection from page1 to page2, I need to
send
> some of the variables declared inside page1 to page2 (they should not
be
> static variables) can some one tell me how I can do this?
> 
> thanks
> 
> B.
> to unsubscribe send a blank email to leave-aspx_beginners-
> 818575C@p...


Message #3 by "Carl E. Olsen" <carl-olsen@m...> on Sun, 11 Aug 2002 11:58:30 -0500
Oops.  Wrong list.  Please ignore my answer, because it was in ASP 3.0
syntax.  It probably works the same way in ASP.NET, but may need some
tweaking.

Carl Olsen
http://carl-olsen.com/



> -----Original Message-----
> From: bimalka [mailto:bimalkaw@a...]
> Sent: Sunday, August 11, 2002 5:53 PM
> To: aspx_beginners
> Subject: [aspx_beginners] redirect..
> 
> I have an application that contains two froms (two ASP.NET page
> objects) when I execute redirection from page1 to page2, I need to
send
> some of the variables declared inside page1 to page2 (they should not
be
> static variables) can some one tell me how I can do this?
> 
> thanks
> 
> B.
> to unsubscribe send a blank email to leave-aspx_beginners-
> 818575C@p...


Message #4 by "jeby" <jeby@c...> on Mon, 12 Aug 2002 11:52:56 +0530
use session variables.

-----Original Message-----
From: bimalka [mailto:bimalkaw@a...]
Sent: Sunday, August 11, 2002 5:53 PM
To: aspx_beginners
Subject: [aspx_beginners] redirect..


I have an application that contains two froms (two ASP.NET page
objects) when I execute redirection from page1 to page2, I need to send
some of the variables declared inside page1 to page2 (they should not be

static variables) can some one tell me how I can do this?

thanks

B.
Message #5 by "Curtner, Lynn" <lynn.curtner@p...> on Mon, 12 Aug 2002 10:05:33 -0500
You could include your variables in the URL, as in...

	Response.Redirect("MyURL?variable1=somevalue&variable2=someothervalue");

> ----------
> From: 	jeby[SMTP:jeby@c...]
> Reply To: 	aspx_beginners
> Sent: 	Monday, August 12, 2002 1:22 AM
> To: 	aspx_beginners
> Subject: 	[aspx_beginners] RE: redirect..
> 
> use session variables.
> 
> -----Original Message-----
> From: bimalka [mailto:bimalkaw@a...]
> Sent: Sunday, August 11, 2002 5:53 PM
> To: aspx_beginners
> Subject: [aspx_beginners] redirect..
> 
> 
> I have an application that contains two froms (two ASP.NET page
> objects) when I execute redirection from page1 to page2, I need to send 
> some of the variables declared inside page1 to page2 (they should not be
> 
> static variables) can some one tell me how I can do this?
> 
> thanks
> 
> B.
> 
> 

  Return to Index