Posted on: 5/14/2015 7:13:22 PM | Views : 651

hello, i tried to use my code:
var secure = from t1 in db.tbl_AppSettings join t2 in db.aspnet_Applications on t1.ApplicationId equals t2.ApplicationId where t1.CertificateSSL == true && t2.ApplicationName == baseUrl() select t1; // C:\ftp\sportsbook StringBuilder str = new StringBuilder(); // check is secure connection used if (secure.Count() > 0 && !Request.IsSecureConnection) { str.AppendLine("Secure Redirect Called"); // Response.Redirect("dada"); // redirect visitor to SSL connection Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://www.").Replace("https://www.www.", "https://www.")); } // HttpContext context = base.Cont ...

Go to the complete details ...