Public partial class Page1 : PhoneApplicationPage { WebClient client; public Class1 inf = new Class1(); public Page1() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted); } void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error == null) { XElement resultElements = XElement.Parse(e.Result); name = resultElements.Element("actorName").Value; faculty = resultElements.Element("facultyName").Value; subject = resultElements.Element("deptName").Value; campusName = resultElements.Element("campusName").Value; // studentno = resultElements.Element("uniNo").Value; // mobileno = resultElements.Element("mobile").Value; string yyy = inf.uri + textBlock1.Text + "/1"; client.DownloadStringAsync(new Uri(yyy)); textBlock1.Text = name; textBlock2.Text = faculty; textBlock3.Text = subject; textBlock4.Text = campusName; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)