I’d like to post some form variables into a classic ASP page. I don’t want to have to alter the classic ASP pages, because of the amount of work that would need to be done, and the amount of pages that consume them.
The classic ASP page expects form variables Username and Userpassword to be submitted to them.
username = Request.Form('UserName') userpassword = Request.Form('Userpassword')
It then performs various actions and sets up sessions, going into an ASP application.
I want to submit these variables into the page from ASP.NET, but the login control is nested inside usercontrols and templates, so I can’t get the form element’s names to be ‘username’ and ‘UserPassword’.
Any ideas?
You can’t really ‘forward’ a POST on, like you’re wanting to do (in your OP). The client has to initiate the POST to your ASP page(s) (which the code in your second post is doing).
Here’s the self-POSTing code from your own reply so you can mark an answer, like you suggested: