171
rated 0 times
[
175]
[
4]
/ answers: 1 / hits: 17995
/ 16 Years ago, thu, march 12, 2009, 12:00:00
I'm trying to run some java script just before a page redirect but it fails to run.
When I comment out the Response.Redirect all works fine but this goes against the particular requirements. Any ideas on how to implement this functionality?
Dim strscript As String = <script>alert('hello');</script>
If Not ClientScript.IsClientScriptBlockRegistered(clientscript) Then
ClientScript.RegisterStartupScript(Me.GetType(), clientscript, strscript)
End If
Response.Redirect(http://www.google.com)
More From » asp.net