Click here to Skip to main content
15,895,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai i am using silverlight 4 .how to go next page in silverlight Class not for Xmal page i ma using the class , So i dont know how to go for next page in class file Below is my code

C#
 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();
        }
    }
Posted
Updated 4-Jun-13 21:19pm
v2
Comments
Sunasara Imdadhusen 5-Jun-13 9:08am    
not clear!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900