Solved

ADP.net HTTPS

Posted on 2006-10-20
9
275 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
  • 5
  • 4
9 Comments
 
LVL 6

Expert Comment

by:bigphuckinglizard
Comment Utility
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
Comment Utility
Well I want only the checkout page to use the HTTPS URL
0
 
LVL 6

Expert Comment

by:bigphuckinglizard
Comment Utility
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
 

Author Comment

by:davelalande
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 6

Expert Comment

by:bigphuckinglizard
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
new issue, post a new question...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now