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.
MARRIOTTSVILLE, Md. (AP) — A man who killed two people at a Maryland mall in January before killing himself acted alone, had no connection with his victims and may have had a fixation with the 1999 Columbine High School shooting, police said Wednesday.
Months before Malaysia Airlines flight MH370 mysteriously vanished, US regulators warned of a "cracking and corrosion" problem on Boeing 777s that could lead to a mid-air breakup and drastic drop in cabin pressure. The revelation comes amid a desperate search for traces of the plane with 239 people on board, which lost contact with air traffic control at around 1730 GMT Friday, about an hour after take-off from Kuala Lumpur en route to Beijing. "We are issuing this AD (Airworthiness Directive) to detect and correct cracking and corrosion in the fuselage skin, which could lead to rapid decompression and loss of structural integrity of the airplane," the Federal Aviation Administration said. During a sudden drop in cabin pressure, the crew and passengers can become unconscious, leaving no one at the controls of the affected aircraft.
HARRISBURG, Pa. (AP) — Bill Clinton is wading into a hotly contested U.S. House primary in Philadelphia and its suburbs to raise money for Marjorie Margolies, the mother-in-law of Chelsea Clinton who is running for a seat two decades after she lost it.
SAN FRANCISCO (AP) — A fire that barreled through an apartment building construction site sending up black smoke that could be seen for miles around the San Francisco Bay smoldered into Wednesday morning as authorities worked determine what sparked the destructive blaze.
PRETORIA, South Africa (AP) — Kneeling, a South African police officer on Wednesday swung a cricket bat at a toilet door erected in the courtroom at Oscar Pistorius' murder trial, using two key pieces of evidence to partially re-enact the night the athlete killed his girlfriend by shooting her through the same door more than a year ago.
STATE COLLEGE, Pa. (AP) — The wife of former Penn State assistant football coach Jerry Sandusky says she "definitely" believes her husband is innocent despite being convicted of sexually abusing 10 boys and that the victims' financial gain was at play.
VATICAN CITY (AP) — From his simple sound bites to his breaking of Vatican rules, Pope Francis has made being Catholic cool in his first year.
<%@ 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" />