using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace UABLP { public partial class amityonline : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { try { System.Net.ServicePointManager.ServerCertificateValidationCallback += (s, cert, chain, sslPolicyErrors) => true; WebClient client = new WebClient(); byte[] binary = client.DownloadData("http://www.amityonline.com/Magnon/landingpagemagnon.aspx?WCID=Magnon10052016A"); Response.ContentType = "text/html"; Response.BinaryWrite(binary); Response.Flush(); } catch (Exception ex) { Response.Write(ex.Message.ToString()); } } } }