Solved

download a webpage with vb.net or C#

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

12 Experts available now in Live!

Get 1:1 Help Now