?
Solved

ADP.net HTTPS

Posted on 2006-10-20
9
Medium Priority
?
333 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Simple Linear Regression
Introduction to Processes
Suggested Courses

771 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