Solved

ADP.net HTTPS

Posted on 2006-10-20
9
292 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
count8 challlenge 13 118
wordmultiple challenge 12 121
Basic Java Case or If-Else statement... 3 43
Tax Considerations for positive outcomes, outside the U.S. for IT Professionals 3 36
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
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 …
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

896 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

18 Experts available now in Live!

Get 1:1 Help Now