Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2007, 02:43 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Redirecting Page With Alert

Hi All,

I am trying to redirect a page with a delay and alert message.

The following is the code I am using:
------------------------------------------------------------

Response.Write "<script language=""javascript"">"
Response.Write "alert(""" & GetTextFromXMLDisplay("logoffmsg",session("objSetu pXML")) & """);"
Response.Write "</script>"
Response.AddHeader "Refresh","50;URL=ConfigureSubObjects.asp?ObjectID =" & clng(varObjID)&"&hdnMainobj="&varMainTbl
------------------------------------------------------------

Problem is the Redirect is happening without the alert message.

I have used Response.Flush but that shows the alert but does not do the Redirect part.

How to overcome this. I must use server side scripting.

Any help would be appreciated.

Thanks in advance !!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting to another page after a specified time anujrathi ASP.NET 1.0 and 1.1 Professional 1 August 3rd, 2006 12:40 AM
Page Redirecting venkatagiri ASP.NET 2.0 Basics 0 June 22nd, 2006 06:17 AM
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 07:34 AM
Jsp page redirecting itself. allang JSP Basics 2 September 8th, 2005 06:39 AM
Alert when page opens? larry Javascript How-To 19 July 6th, 2004 01:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.