This demo illustrates how to perform a screen scrape using the WebClient
class. Note that only a few lines of code are needed. (With classic ASP, to perform screen
scrapes you needed to use a third-party component.) To view the actual HTML returned by
the screen scrape, do a View/Source.
Ramallah (Palestinian Territories) (AFP) - The Palestinians are considering "all options" in response to Israel's decision to halt peace talks and punish the Palestinian Authority over its unity deal with Hamas, an official said Thursday. “The Palestinian leadership will look into all options to respond to Israeli government decisions against the PA,” senior Palestinian official Saeb Erakat told AFP. “The priority now for the Palestinians is reconciliation and national unity,” he added. On Wednesday, the Palestine Liberation Organisation (PLO) -- internationally recognised as the sole representative of the Palestinian people -- and Islamist rulers of the Gaza Strip Hamas signed a reconciliation agreement.
Ukrainian government troops moved against pro-Russia forces in the east of the country on Thursday and killed at least two of them in clashes at checkpoints manned by the insurgents, the government and insurgents said. Russian President Vladimir Putin decried what he described as a "punitive operation."
ANSAN, South Korea (AP) — Students in the city hit hardest by the South Korean ferry disaster returned to classes Thursday, their school campus a tragic landscape of yellow ribbons, chrysanthemums and photos of classmates and teachers who make up the vast majority of the more than 300 people feared dead.
<%@ Import Namespace="System.Net" %>
<script language="VB" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
'STEP 1: Create a WebClient instance
Dim objWebClient as New WebClient()
'STEP 2 and 3
Const strURL as String = "http://www.yahoo.com/"
Dim objUTF8 as New UTF8Encoding()
lblHTMLOutput.Text = objUTF8.GetString(objWebClient.DownloadData(strURL))
<h1>Screen Scrape of www.yahoo.com</h1>
<asp:label id="lblHTMLOutput" runat="server" />