I have a simple code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.IO;
public partial class WebClient : PhoneApplicationPage
{
public WebClient()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
WebClient webclient = new WebClient();
Now when I say webClient.
, I expected to see DownloadStringCompleted in the IntelliSense dropdown but I dont see. And when I force use it, ofcourse it doesn't compile. What is the problem?
I am testing WebClient to see if it is of use in my project since I am fed up with the async calls and multiple threads associated with HttpWebRequest