Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: ocean10000
Anyhow, one of our order pages currently accepts values via a form POST, we don't want to use GET for security reasons (prevents users from easily just messing with the posted data). So, the problem arises, when I'm at a .NET page the user arrives at through email, it uses forms authentication (not that it matters, but that's why this is a mix of .net and classic asp) and once the user is logged in, we want this page, to redirect the user to a step in the middle of the order process.
Seems simple, but that page, as I mentioned expected POST data. I can't do a response.redirect, because that would be a GET request with the variables on the query string. I don't want to dynamically build a form and post it with java script as that's not reliable.
Ultimately, I've resorted to a HTTPWebRequest/HTTPWebResponse solution, that seems to work great, I built the POST request, read the response, and throw the result into a literal on the page. I am now at the proper spot in the order process, everything looks golden...then I hit submit.
The form doesn't post to the next page, it does a post back because I'm still technically viewing a .NET page and have a structure as follows:
<form name="Form1" method="post" action="thispage.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="foo" />
<form action="NextPage.asp" method="post">
Various inputs and other form elements
This is infuriating.