Hello,
I created a base page (let's call it sslBasePage) which is inherited by all pages that require ssl and in the Init event of that page i have the code
1 Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
2 If Not Request.IsSecureConnection Then
3 Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://"))
4 End If
5 MyBase.OnInit(e)
6 End Sub
Go to the complete details ...