Download presentation
Presentation is loading. Please wait.
Published byMyles Cameron Modified over 8 years ago
3
3
4
4
5
5
6
6
7
7
8
8
9
9 WebClient client;
10
10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler( client_DownloadStringCompleted); }
11
11 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler( client_DownloadStringCompleted); }
12
12 void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error == null) { pageTextBlock.Text = e.Result; }
13
13 private void loadButton_Click(object sender, RoutedEventArgs e) { client.DownloadStringAsync(new Uri(urlTextBox.Text)); }
14
14 private void loadButton_Click(object sender, RoutedEventArgs e) { client.DownloadStringAsync(new Uri(urlTextBox.Text)); }
15
15
16
16
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.