Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect page from asp.net to asp

Status
Not open for further replies.

micawber

Programmer
Dec 10, 2002
71
GB
I'm trying to redirect the highlighted page whilst passing the values of a form from asp.net to asp.
Can anyone help?

Here is an example:


Code:
<form action="[URL unfurl="true"]http://www.test.co.uk/test/transfer.aspx"[/URL] method=post>
<input type="hidden" value="        <html>        <body onload="document.MyForm.submit();">
<form method="post" name="MyForm" action="[b][COLOR=red][URL unfurl="true"]https://www.test123.co.uk/test/test.asp[/URL][/color][/b]">
  <input value="12-34-56" type="hidden" name="fieldA" />
  <input value="1234567" type="hidden" name="fieldB" />
  <input value="ABCD" type="hidden" name="fieldC" />
  <input value="200" type="hidden" name="fieldD" />
  <input value="100" type="hidden" name="fieldE" />
  <input value="Mr Test Test" type="hidden" name="fieldF" />
</form>
</body>
</html>
"name=transferpartnerurldata id=transferpartnerurldata>
<input type=image src="/images/buyonline.gif" name=submit value=submit>
</form>
 
Maybe I am clueless, but why are your trying to do this all in one go? Wouldn't two pages be easier?

On initial_page.asp where you have the buyonline form, info is collected, and the page is submitted to transfer.aspx.

Transfer.aspx pulls the values out of the query string, adds in hidden values, loads a database, stands on it's head, does whatever you want, and then redirects to test.asp. Never displays to the user.

Test.asp is whatever you want and pulls whatever database values you need.

 
Yeah I've got it working now.
I needed to use <%= session("fieldA") %> instead of <%= request.form("fieldA") %> on the redirect pages.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top