I want to call another asp page("Login.asp") from my form load of aspx page (Scraping.aspx) and populate certain values in the aspx page based on the results returned from asp page. I have to pass certain parameters like username and password to the asp page("Login.asp") and the form should be submitted automatically . How to implement the form submission of asp page automatically from the aspx page. Based on the search results in the redirect asp page("Main.asp"), i have to populate values in aspx page(Scraping.aspx)
Note: I must need this in POST methode
I have used the below code but Auto-submit on asp page doesn't happen
NameValueCollection formData = new NameValueCollection(); formData["txUser"] = "SMITH"; formData["txPass"] = "244557719"; formData["cmdGoLive"] = "Submit"; // add more form field / values here WebClient webClient1 = new WebClient(); byte[] responseBytes = webClient1.UploadValues(LOGIN_URL, "POST", formData);
Moved bySachinWWednesday, March 3, 2010 7:46 AMMoving from MSDN and TechNet Search Feedback Forum, please move or answer as necessary (From:MSDN and TechNet Search Feedback)