Hey,
I am trying to display a javascript 'pop up' alert box when a user clicks on a button. The code I have to do this is below (There is code before this in the event handler but it is not relevant)
The problem is that is alert box is not showing!
Stepping through the code everything seems to be ok. No errors or warnings of any sort!
Any ideas?
Cheers
I am trying to display a javascript 'pop up' alert box when a user clicks on a button. The code I have to do this is below (There is code before this in the event handler but it is not relevant)
Visual Basic:
Dim sAlert As String = "myalert"
Dim jscript As String
jscript = "<script language=javascript>window.alert('Password Change Successful - Redirecting to logon screen');</script>"
RegisterStartupScript("myalert", jscript)
The problem is that is alert box is not showing!
Stepping through the code everything seems to be ok. No errors or warnings of any sort!
Any ideas?
Cheers