Redirecting to an SSL page

To have your codecharge site redirect to an SSL page for all pages, place the following code in the Application_BeginRequest method in Global.asax:

  If Not Request.IsSecureConnection Then
   Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://"))
  End If