Posted on: 3/31/2015 5:31:10 PM | Views : 640

Hi,
I have two different applications, in page load need to redirect to the different application.
I am passing some value in Header due to security consideration.
Below is the Code , How can i redirect automatically to second application.
string remoteUrl = "http://localhost/Home.aspx"; string key = ""; key = "dbcnm12ASgfysjsyss"; //Its an encrypted key ASCIIEncoding encoding = new ASCIIEncoding(); string data = string.Format("key={0}", key); byte[] bytes = encoding.GetBytes(data); HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(remoteUrl); httpRequest.Method = "POST"; httpRequest.ContentType = "application/x-www-form-urlencoded"; httpRequest.ContentLength = bytes.Length; httpRequest.AllowAutoRedire ...

Go to the complete details ...