Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. HTTPS implmentation issue in asp.net

HTTPS implmentation issue in asp.net

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharpsysadmincryptographyjson
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    afsal qureshi
    wrote on last edited by
    #1

    Hello, I am new to implementing HTTPS. My site has all capabilities for https and the server is ready with the certificate. Now, i want to implement a functionality like we see in normal websites with https. Like in gmail, if we try to change https in the addressbar tp http it will come back to https. The user cannot change it to http. Any suggestion how to do it. Please note that I have only one page to be in https and rest all are in http. I am doing in MVC 3. Thanks,

    J 1 Reply Last reply
    0
    • A afsal qureshi

      Hello, I am new to implementing HTTPS. My site has all capabilities for https and the server is ready with the certificate. Now, i want to implement a functionality like we see in normal websites with https. Like in gmail, if we try to change https in the addressbar tp http it will come back to https. The user cannot change it to http. Any suggestion how to do it. Please note that I have only one page to be in https and rest all are in http. I am doing in MVC 3. Thanks,

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      Something like below

      Context.Response.Redirect(Context.Request.Url.ToString().Replace("http://", "https://"))

      and vice versus in the Page.OnPreRender Page Cycle

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups