if (!Request.IsSecureConnection) { // send user to SSL string serverName =HttpUtility.UrlEncode(Request.ServerVariables["SERVER_NAME"]); string filePath = Request.FilePath; Response.Redirect("https://" + serverName + filePath); }
A directory of ASP.NET tutorials,ASP.NET Codebook, applications, scripts, assemblies and articles for the novice to professional developer
if (!Request.IsSecureConnection) { // send user to SSL string serverName =HttpUtility.UrlEncode(Request.ServerVariables["SERVER_NAME"]); string filePath = Request.FilePath; Response.Redirect("https://" + serverName + filePath); }
No comments:
Post a Comment