The goal is to popup an asp.net page from classic asp using post data, however, the asp.net page always has Request.Form variables as empty and shows RequestType get.
-
I have stripped all the code from asp out, tested receiving the form variables sent from an html page on the asp.net page and this works fine. Copying the same form html to the asp page still gives no request.form data and a RequestType get
<html> <head></head> <body> <form method="post" name="form" action="http://localhost:51307"> <input name="uid" value="1" /> <input type="submit" name="Submit" /> </form> </body>
The asp site is using frames and the form is sent from a child frame, I’m unsure if this is the issue.
2.
Assuming this worked, I had thought to submit a form in asp and use the onsubmit event of the form to popup the page which would send the form variables as post data. Is this the best way of doing this?
UPDATE
The frames seem to be at fault here somehow, I have posted from the form within the framed page to another classic asp page and then redirected from this to the asp.net page.
This probably happened because “Navigate windows and frames across different domains” is disabled by default in IE browsers, which means you can’t pass form data due to security reasons.