Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Avoid security warning when switch from pageA(https) to PageB (http).

Reply
Thread Tools

Avoid security warning when switch from pageA(https) to PageB (http).

 
 
Jeyakumar
Guest
Posts: n/a
 
      06-27-2006
Hi,

I am using following code to avoid security warning when switch from
pageA(https) to PageB (http).


'Output a redirector for the needed page to avoid a security warning.
Response.Clear()
'Add a refresh header to the response for the new path.
Response.AddHeader("Refresh", "0;URL=PageB.aspx")
' Also, add JavaScript to replace the current location as backup.
Response.Write("<html><head><title></title>")
Response.Write("<!-- <script
language=""javascript"">window.location.replace("" ")
Response.Write("PageB.aspx")
Response.Write(""")</script> -->")
Response.Write("</head><body></body></html>")
Response.End()


Working fine for most users. But some users say they do see only a blank
page.

Any idea what is missing above code.

Thanks, J


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid having a SQL express for web parts and avoid personalization Roger23 ASP .Net 2 10-12-2006 10:54 PM
passing a token from pageA.aspx to pageB.aspx Jay ASP .Net Building Controls 4 10-11-2006 03:14 PM
Avoid security warning when switch from pageA(https) to PageB (http). Jeyakumar ASP .Net Security 0 06-27-2006 03:42 PM
Avoid unchecked cast warning Ian Pilcher Java 0 08-20-2005 05:23 PM
Avoid wasting time or how to avoid initialization Alexander Malkis C++ 8 04-13-2004 11:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57