• RSS
  • Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Using Response.Redirect from ASPX code

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA 2006 Misc.] >> ISA 2006 Programming >> Using Response.Redirect from ASPX code Page: [1]
Login
Message << Older Topic   Newer Topic >>
Using Response.Redirect from ASPX code - 20.Feb.2007 10:50:06 PM   
hjadkins

 

Posts: 15
Joined: 8.Sep.2006
Status: offline
I'm trying to do a simple test to see if a aspx page is secure, if not redirect back to itself inserting https.  The code I'm using is below:
 
It seems to get caught in circlular reference, becuase the IsSecureConnection after the redirect still reads false, but if you go to the page manually by typing in the URL, the IsSecureConnection reads true.  The  Response.Redirect should respond the same just as if you were tryping it in, but ISA is handling it different.
 
be aware if you test the code, hit the stop button right away or you'll flood your IIS server with the same page request.
 
Thanks for any insight or thoughts on the issue:

.Net 2.0, ISA Server 2006 Ent.


If
Not Page.IsPostBack Then

  If Request().IsSecureConnection = False Then
     Response.Redirect("https://" & Request.ServerVariables("HTTP_HOST")  & Request.ServerVariables("PATH_INFO"), True)
  End If

 Label1.Text = Request().IsSecureConnection.ToString
End If
Post #: 1
RE: Using Response.Redirect from ASPX code - 23.Feb.2007 11:18:26 PM   
hjadkins

 

Posts: 15
Joined: 8.Sep.2006
Status: offline
Update on the issue:

What is Microsoft thinking .... what a oversight in functionality.

http://www.eggheadcafe.com/software/aspnet/29098662/re-redirect-http-to-http.aspx

http://support.microsoft.com/kb/924373


Microsoft: Fix the problem, this is a bug, 302 redirect should be allowed, you broke allot of code aspx code.

(in reply to hjadkins)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA 2006 Misc.] >> ISA 2006 Programming >> Using Response.Redirect from ASPX code Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts