ottenm
asked on
write to response stream *after* response.redirect? (redirect PLUS modal dialog)
Hello-
I'm trying to redirect a response AND popup a dialog explaining why.
Here's the code I've been using to popup messages, but I am not having any luck putting it before or after the Response.Redirect:
System.Web.HttpContext.Cur rent.Respo nse.Write( "<SCRIPT LANGUAGE=""JavaScript"">" & vbCrLf)
System.Web.HttpContext.Cur rent.Respo nse.Write( "alert(""" & MessageHere & """)" & vbCrLf)
System.Web.HttpContext.Cur rent.Respo nse.Write( "</SCRIPT> ")
Any help greatly appreciated-
VB.NET 1.1
I'm trying to redirect a response AND popup a dialog explaining why.
Here's the code I've been using to popup messages, but I am not having any luck putting it before or after the Response.Redirect:
System.Web.HttpContext.Cur
System.Web.HttpContext.Cur
System.Web.HttpContext.Cur
Any help greatly appreciated-
VB.NET 1.1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks the_paab!
I just put the message string in the session, check for it on load, then display it and set it back to nothing.
I just put the message string in the session, check for it on load, then display it and set it back to nothing.
Dim scriptString As String = "<script language=JavaScript>alert(
scriptString += "<"
scriptString += "/"
scriptString += "script>"
If (Not IsClientScriptBlockRegiste
RegisterClientScriptBlock(
End If