?
Solved

download a webpage with vb.net or C#

Posted on 2009-05-05
3
Medium Priority
?
299 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
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

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

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 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