Thursday 22 August 2013

How to check the protocol of web page is HTTP or HTTPS


Inside .aspx.cs:

Request.IsSecureConnection


Outside .aspx.cs means in custom class:

HttpContext.Current.Request.IsSecureConnection

No comments:

Post a Comment