Sometimes we want to provide secure channel over an insecure network. e.g. for payment transactions. In that case we need HTTPS connection
Assume that your page is as follows: http://www.mydomain.com/mypage.aspx
Just add following code inside Load Event Handler!
If Not Request.IsSecureConnection Then
Response.Redirect("https://www.mydomain.com/mypage.aspx ")
End If
Saturday, March 6, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment