|
 |
aspx thread: How do you transfer Control values to next page?
Message #1 by "Michael Passalacqua" <mpassala@p...> on Mon, 20 Jan 2003 19:47:49
|
|
Ok, how do you transfer the values of form controls from one page to the
next?
Server.transfer doesn't seem to work anymore. It takes you to the
specified page, but won't transfer form control values.
I know how to do it by setting properties for each value you want to
transfer. Are there simpler, more straightforward ways? It used to be a
snap in classic ASP.
Michael Passalacqua
Portland Community College
CIS Faculty
Message #2 by "Mike Amundsen" <mike@a...> on Mon, 20 Jan 2003 15:37:43 -0500
|
|
Server.transfer has a second parameter:
Server.Transfer("mypage.aspx",true)
This second parameter controls whether form inputs and header values are
passed to the target page.
MCA
Mike Amundsen
mca@E...
xxx.xxx.xxxx
xxx.xxx.xxxx (FAX)
Host your .NET apps @ EraServer.NET
-----Original Message-----
From: Michael Passalacqua [mailto:mpassala@p...]
Sent: Monday, January 20, 2003 7:48 PM
To: ASP.NET
Subject: [aspx] How do you transfer Control values to next page?
Ok, how do you transfer the values of form controls from one page to the
next?
Server.transfer doesn't seem to work anymore. It takes you to the
specified page, but won't transfer form control values.
I know how to do it by setting properties for each value you want to
transfer. Are there simpler, more straightforward ways? It used to be a
snap in classic ASP.
Michael Passalacqua
Portland Community College
CIS Faculty
Message #3 by "Michael Passalacqua" <mpassala@p...> on Tue, 21 Jan 2003 01:26:55
|
|
Does this actually work for you? I have never been able to get it to
work. I get back the following error when the server.transfer statement
executes:
The View State is invalid for this page and might be corrupted.
> Server.transfer has a second parameter:
Server.Transfer("mypage.aspx",true)
This second parameter controls whether form inputs and header values are
passed to the target page.
MCA
Mike Amundsen
mca@E...
xxx.xxx.xxxx
xxx.xxx.xxxx (FAX)
Host your .NET apps @ EraServer.NET
-----Original Message-----
From: Michael Passalacqua [mailto:mpassala@p...]
Sent: Monday, January 20, 2003 7:48 PM
To: ASP.NET
Subject: [aspx] How do you transfer Control values to next page?
Ok, how do you transfer the values of form controls from one page to the
next?
Server.transfer doesn't seem to work anymore. It takes you to the
specified page, but won't transfer form control values.
I know how to do it by setting properties for each value you want to
transfer. Are there simpler, more straightforward ways? It used to be a
snap in classic ASP.
Michael Passalacqua
Portland Community College
CIS Faculty
|
|
 |