public void GetResponseCallback(IAsyncResult asynchronousResult) { HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState; HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asynchronousResult); Stream streamResponse = response.GetResponseStream(); StreamReader streamRead = new StreamReader(streamResponse); string responseString = streamRead.ReadToEnd(); MemoryStream ResMs = new MemoryStream(Encoding.UTF8.GetBytes(responseString)); DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(mResponse)); mResponse _ResLogIn = (mResponse)ser.ReadObject(ResMs); if (_ResLogIn.Code == "1") { // Hear only i need to access next Page //this one of the Class file (vm.login.cs) //if _ResLogIn.Code to for next Page Please help me } else { Deployment.Current.Dispatcher.BeginInvoke(() => { MessageBox.Show("InValied UserName and PassWord"); return; }); } streamResponse.Close(); streamRead.Close(); response.Close(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)