I am working on a project that has one page that needs to make use of the SSL certificate. All of the links in the site to this page make use of https instead of http, but in th
Actually the best practice would be to do this in one of three places, assuming hardware or IIS settings are not an option. Just code options.
All of those would be good options. One and two are guaranteed to be hit by every request processed by ASP.NET. The third one requires that you make sure all of your pages inherit from the base page.
I would not put the code in each page, that's just bad programming.
Let me know if you need more clarification, but this is a good start.