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.
Ukrainian Prime Minister Arseniy Yatsenyuk believes Russian President Vladimir Putin "has a dream to restore the Soviet Union" — and Putin realizing that dream would be disastrous for the rest of the world.
A Malaysia Airlines plane with 166 people aboard was forced to make an emergency landing in Kuala Lumpur early Monday in another blow to its safety image after the loss of flight MH370. Flight MH192, bound for Bangalore, India, turned back to Kuala Lumpur after it was discovered that a tyre had burst on take-off, the airline said. "As safety is of utmost priority to Malaysia Airlines, the aircraft was required to turn back to KLIA (Kuala Lumpur International Airport)," the airline said in a statement. The airline said tyre debris discovered on the runway had led to the decision to bring the Boeing 737-800 aircraft back.
VATICAN CITY (AP) — Marking Christianity's most hopeful day, Pope Francis made an Easter Sunday plea for peace and dialogue in Ukraine and Syria, for an end to terrorist attacks against Christians in Nigeria and for more attention to the hungry and neediest close to home.
JINDO, South Korea (AP) — The South Korean ferry that sank was crippled by confusion and indecision well after it began listing, a radio transcript released Sunday showed, suggesting the chaotic situation may have added to a death toll that could eventually exceed 300.
WASHINGTON (AP) — Biofuels made from the leftovers of harvested corn plants are worse than gasoline for global warming in the short term, a study shows, challenging the Obama administration's conclusions that they are a much cleaner oil alternative and will help combat climate change.
Despite major changes in public opinion in recent years, Rev. Franklin Graham, son of perhaps the most famous American preacher of all time, Billy Graham, reiterated his strong opposition to gay marriage and gay adoption today on ABC’s “This Week.” As a part of a...
<%@ 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" />