p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 8th, 2007, 02:43 AM
Friend of Wrox
Points: 577, Level: 8
Points: 577, Level: 8 Points: 577, Level: 8 Points: 577, Level: 8
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Apr 2005
Location: Kolkata, West Bengal, India.
Posts: 115
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 !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 01:40 AM
Page Redirecting venkatagiri ASP.NET 2.0 Basics 0 June 22nd, 2006 07:17 AM
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 08:34 AM
Jsp page redirecting itself. allang JSP Basics 2 September 8th, 2005 07:39 AM
Alert when page opens? larry Javascript How-To 19 July 6th, 2004 02:40 AM



All times are GMT -4. The time now is 12:51 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc