asp.net - requireSSL="true" for subfolder -


Is it possible to determine the requirement of SSL = "true" for the admin part of the site alone?

You can do this easily for any page:

 < Code> HttpContext.Current.Request.IsSecureConnection.Equals (false) then react. Redirection ("https: //" + request. White ("HTTP_HOST") + HttpContext.Current.Request.RawUrl) End if  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -