asp.net.ph

Request.IsSecureConnection Property

System.Web Namespace   HttpRequest Class


Gets a value indicting whether the HTTP connection uses secure sockets ( that is, HTTPS ).

[ VB ]
Public ReadOnly Property IsSecureConnection As Boolean

[ C# ]
public bool IsSecureConnection {get;}

[ C++ ]
public: __property bool get_IsSecureConnection ( );

[ JScript ]
public function get IsSecureConnection ( ) : Boolean;

Property Value

true if the connection is secure; otherwise, false.

Example

The following example shows the simplest way to retrieve and display the IsSecureConnection for the current URL request.

<%= Request.IsSecureConnection %>

 Show me 

See Also

HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph