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 !!
|