If Request.Url.Scheme.Equals("https") Then
' Is secure...
End If
A better approach would be to restrict the access to the application by
IIS, which allows to force the use of SSL. In this case you won't have
to check programmatically.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.