Redirect SSL Secured page from ASP.Net

As you know, you may easily force your site fully running SSL from your site but this will causing your site loading slowly as it is running encryption for your site.

Now, you may use the following script to apply your script to use SSL and you may apply this to your Page_Load function.

Dim strURL As String = Request.Url.ToString()
If Request.IsSecureConnection Then
    If strURL.IndexOf("http:") > -1 Then
    strURL = strURL.Replace("http:", "https:")
    Response.Redirect(strURL)
    End If
Else
    If strURL.IndexOf("https:") > -1 Then
    strURL = strURL.Replace("https:", "http:")
    Response.Redirect(strURL)
    End If
End If