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

J

Jeyakumar

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top