download a webpage with vb.net or C#

Posted on 2009-05-05
Medium Priority
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>

Open in new window

Question by:talker2004
LVL 12

Accepted Solution

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


Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
SingleRun is a tool that ensures that only one instance of an application is started, running it again brings the application to focus.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

624 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