Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2006, 10:41 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Webrequest and response to post data

I want to simulate the submission of an asp application from my asp.net application. The url for asp application takes username and password as parameters and when it is submitted, the results are posted to another asp page.

Eg if i click submit button of page1.asp, the results are posted in page2.asp and i want to scrape the html of page2.asp and accordingly display the results in my asp.net application.

I am able to get the response html of page1.asp using webrequest and response. But it does not do the auto-submit of page1.asp

Can anyone give me some ideas on how to do this.

 
Old July 13th, 2006, 10:49 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I do not fully understand your question. Are you trying to do the same thing in .NET that you have done in classic asp or are you just trying to do a screen scrape?

"The one language all programmers understand is profanity."
 
Old July 14th, 2006, 09:57 PM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want to simulate the posting of asp page from asp.net application and then scrape the html of the asp page.

 
Old July 15th, 2006, 06:11 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Why not just do the entire thing in .Net it will eliminate the step of having to scrape the HTML.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
C# post xml using HttpWebRequest/Response datakix ASP.NET 1.0 and 1.1 Professional 6 June 14th, 2016 07:47 AM
POST response cached keenlearner BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 March 27th, 2007 03:12 PM
WebRequest Response Error hpatel_it ASP.NET 2.0 Basics 0 October 17th, 2006 06:50 AM
Using web request and response to post data to URl cgmenon .NET Framework 1.x 0 July 13th, 2006 10:39 AM
how to post variable on response.redirect????? Swetz Classic ASP Components 3 May 16th, 2006 06:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.