Solved

ADP.net HTTPS

Posted on 2006-10-20
9
319 Views
Last Modified: 2011-09-20
Hello All,

this is ASP.net
Here is what I want to do, I have a checkout page, this checkout.aspx should get a HTTPS URLS instead of HTTP
Can anyone helpo me in this.
more detail addition to the above question, I want all the urls to show https//mysite.com/photogallery/album.html rather than http//mysite.com/photogallery/album.html

Regards,

0
Comment
Question by:davelalande
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 6

Expert Comment

by:bigphuckinglizard
ID: 17772037
Hi

There's a good guide to setting up SSL (HTTPS) on IIS here

http://builder.com.com/5100-6389-5055536.html

You can require https via two different methods:

1. Require https on the site by going to the "Directory Security" tab in the IIS Website properties, click "Edit" under "Secure Communication" and tick "Require secure channel". Anyone using http rather than https will be knocked back.

2. Create two different sites, one using http and one using https. The http site should have a single default.asp page <% response.redirect "https://mysite.com" %> to redirect to the secure version. The advantage of this method is that people will be redirected without an error message.
0
 

Author Comment

by:davelalande
ID: 17772049
Well I want only the checkout page to use the HTTPS URL
0
 
LVL 6

Expert Comment

by:bigphuckinglizard
ID: 17772056
I want all the urls to show https//mysite.com/photogallery/album.html rather than http//mysite.com/photogallery/album.html / Well I want only the checkout page to use the HTTPS URL

???

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:davelalande
ID: 17772097
yes, see when I am viewing the album.aspx or html I will get the urls to certain links as http://mysite.com/photoalbum/album.aspx, now istead http:// I want all the links to get https:// when I am viewing the album.aspx page
hope my details are understandable.

Regards,
0
 
LVL 6

Expert Comment

by:bigphuckinglizard
ID: 17772101
then just set up https, but don't require it and then use https in your links when you want to!
0
 

Author Comment

by:davelalande
ID: 17772122
this what I am trying through my code, that is should only user https:// for album.aspx file and no other file.
really worked on it whole night on this.
0
 
LVL 6

Accepted Solution

by:
bigphuckinglizard earned 500 total points
ID: 17772178
then put in your album.aspx page_load event:

if (Request.ServerVariables["HTTPS"].ToString()=="off") Response.Redirect("https://mysite.com/photoalbum/album.aspx");
0
 

Author Comment

by:davelalande
ID: 17772302
Could you please tell why I am getting this error message

---------------------------
Microsoft Development Environment
---------------------------
Unable to get the project file from the Web server. Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the Web Development component.
---------------------------
OK  
---------------------------
0
 
LVL 6

Expert Comment

by:bigphuckinglizard
ID: 17772327
new issue, post a new question...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn different types of Android Layout and some basics of an Android App.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question