Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all

 

When navigating between two pages on a site I use Response.redirect("test.aspx"). However, can I use the same statement if the page I am redirecting to is an SSL page?? or do I have to go response.Redirect("https://localhost/project1/text.aspx") or alternatively

response.redirect("https://www.xyz.ie/test.aspx")

 

Michael.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted
Hi all

 

When navigating between two pages on a site I use Response.redirect("test.aspx"). However, can I use the same statement if the page I am redirecting to is an SSL page?? or do I have to go response.Redirect("https://localhost/project1/text.aspx") or alternatively

response.redirect("https://www.xyz.ie/test.aspx")

 

Michael.

Hey Mike,

 

I just built a small app that tested your question. I have found, at least on our system, that coming from a non-ssl page to an ssl page works fine if I use the fully qualified URL of the page I'm redirecting to, which places the correct qualifier in the address bar ("https://blah.blah.com/mypagetest.aspx")

If you don't use the full qualifier, the address bar appears to retain the original http://blah.blah.com/mypagetest.aspx. This would be a problem if your site is secure and you don't automatically toggle your url string to https. Your best bet, if possible, would be to use the fully qualified URL, but there are articles where you can read more about these subjects if you want to try to toggle to use relative paths:

 

These are some samples of what is out there:

Setting up SSL with IIS And ASP.net

 

Toggle between Https and Http

 

Good Luck,

Brian

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...