Solved

ADP.net HTTPS

Posted on 2006-10-20
9
309 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
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Service to Receive TCP Packets 4 171
MacOS and programming in React 7 41
VB.net and sql server 4 45
IDE for Python 5 26
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

820 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