E esthera Member Joined Sep 3, 2009 Messages 5 Programming Experience Beginner Sep 15, 2009 #1 I have a asp.net page How do I force this page to use ssl. (meaning if it's not using ssl then to redirect)
I have a asp.net page How do I force this page to use ssl. (meaning if it's not using ssl then to redirect)
kulrom Well-known member Joined May 10, 2005 Messages 2,854 Location Republic of Macedonia Programming Experience 10+ Sep 15, 2009 #2 say that your page is http://www.domain.com/yourpage.aspx Just add this code inside Load Event Handler: VB.NET: If Not Request.IsSecureConnection Then Response.Redirect("https://www.domain.com/yourpage.aspx ") End If read more about how to force .aspx page to use https Last edited: Sep 15, 2009 Upvote 0 Downvote
say that your page is http://www.domain.com/yourpage.aspx Just add this code inside Load Event Handler: VB.NET: If Not Request.IsSecureConnection Then Response.Redirect("https://www.domain.com/yourpage.aspx ") End If read more about how to force .aspx page to use https