Solved

download a webpage with vb.net or C#

Posted on 2009-05-05
3
283 Views
Last Modified: 2013-11-08
not so fast there is a hard part to all this.

Yes I need to download a webpage in vb.net, however I need to simulate a postback before I download the content. I need to simulate the selection of a dropdown list to choose the value 100.

Once that is chosen I want to download the content of the page that would be rendered after the postback is complete.
 
So the recap is that I have a website I need to be able to download on an interval. However the problem is that I need to simulate a postback on the server to tell it to list 100 per page. This is done through dropdown, you can see the markup for the dropdown below.

Thanks in advance

<select name="DropDownList1" onchange="__doPostBack('DropDownList1','')" language="javascript" id="DropDownList1">
	<option selected="selected" value="15">15</option>
	<option value="25">25</option>
	<option value="50">50</option>
 
	<option value="75">75</option>
	<option value="100">100</option>
 
</select>&nbsp;&nbsp;</TD>

Open in new window

0
Comment
Question by:talker2004
3 Comments
 
LVL 12

Accepted Solution

by:
wht1986 earned 500 total points
ID: 24311023
Havent done it myself, but this bloke seems to have gotten an example working using the WebRequest/WebResponse objects

http://romiller.com/Home/tabid/36/EntryID/40/Default.aspx
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24336892
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question