ASP.NET: best practice for redirecting to https

后端 未结 4 1479
你的背包
你的背包 2021-02-02 03:21

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

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 04:00

    I would call the Response.Redirect in page_load. It is simpler than generating the javascript, and will send fewer bytes to the client.

    Code example

提交回复
热议问题