Posted on: 3/18/2015 4:01:54 AM | Views : 567

Hi,
Below is the code...I am unable to redirect to the another Domain Page.
This code written on Page Load.When Page Load it redirects to that test.com.
Date is the Parameter that passed through the header.
string Uri = "http://www.test.com"; HttpWebRequest loHttp = (HttpWebRequest) WebRequest.Create(Uri); // *** Send any POST data string lcPostData = "Key=" + HttpUtility.UrlEncode("03-02-2015"); loHttp.Method="POST"; byte [] lbPostBuffer = System.Text. Encoding.GetEncoding(1252).GetBytes(lcPostData); loHttp.ContentLength = lbPostBuffer.Length; Stream loPostData = loHttp.GetRequestStream(); loPostData.Write(lbPostBuffer,0,lbPostBuffer.Length); loPostData.Close(); HttpWebResponse loWebResponse = (HttpWebResponse) loHttp.GetResponse(); Encoding enc = System.Text.Encoding.GetEncoding(1252); ...

Go to the complete details ...