Best way in asp.net to force https for an entire site?
About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the page load event. If the request was not over http I would response.redirect("https://example.com")
Is there a better way -- ideally some setting in the web.config?