Redirecting?

  • Thread starter Thread starter ChrisN
  • Start date Start date
C

ChrisN

Hi there,

I have a C# web application. I'm trying to redirect it to another page on
my site. Normally I would use:

redirect("~/users/userLogin.aspx")

The problem is that the userLogin.aspx page needs to run in https not http.
How do I tell the redirect function to redirect to the https version of this
page not http one?

Thanks
Chris.
 
clintonG said:
Pass an absolute URL instead of a virtual URL.

I guess Chris wanted to still use relaive names.
What you can do, Chris, is to first map relative path to the server path(Server.MapTo... - don't
remember exactly the function's name) and then do redirect("https://" + MappedPath) - this way you
don't care either you run it from IIS on your computer or from some other IIS server
 
Back
Top