views:

61

answers:

1

I have an html input control () on an aspx page that is secured via SSL. Just as a sanity check I want to make sure that the upload of the file on this page is also encrypted along with the rest of the page when the postback occurs and the request is sent to the server.

+2  A: 

There is no reason to do this if your server is configured properly. But in your Page_Load...

If Not Request.IsSecureConnection
    'Whatever
End If
Josh Stodola
if (!Request.IsSecureConnection) { }
Yuriy Faktorovich