Never trust IIS to do what you can do yourself in code, unless you *really*
trust the people, IT guys, or script that set your IIS settings.
Ideally, you should set IIS correctly (as this will be faster on the
server), as well as code for redundancy. You can add this to your
page_load...
if (!Request.IsSecureConnection) Response.Redirect("https://secureserver");
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
From: "Curt_C [MVP]" <software_AT_darkfalz.com>
References: <OX**************@TK2MSFTNGP12.phx.gbl>
Subject: Re: locking to https
Date: Thu, 29 Jan 2004 08:43:12 -0600
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#3**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 208.252.151.83
Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP10.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:206087
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
you can force this in IIS as the folder level.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Tommy Martin" <tm*****@xspam-tlmartin.com> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl... I have a credit card page on my asp.net site and i want to make sure it
only runs on a secure connection. Is there a way to make a page not run or to
redirect it to the secure connection?
Thanks
Tommy