Solved

download a webpage with vb.net or C#

Posted on 2009-05-05
3
273 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now