d2005
Active member
i have two functions a
can i have this so that when i click ok in the alert
it shall call the refereshparent
if i call the refresh in the alert()
the page refreshes with no alert being shown
where as i though that all operations were stopped until the user clicked ok
is it possible to sow the alert
then perform the refershparent when they click ok
thanks in advance
VB.NET:
Public Sub refereshparent() Dim NewScript As String NewScript = "<script language=JavaScript>" NewScript = NewScript + "window.parent.location.href = window.parent.location.href;" NewScript = NewScript + "</script" + ">" If (Not IsClientScriptBlockRegistered("test")) Then RegisterClientScriptBlock("test", NewScript) End If End Sub
VB.NET:
Private Sub alert() Dim strmessage As String strmessage = " alerting user" Dim strscript As String = "<script language=JavaScript>" strscript += "alert(""" & strmessage & """);" strscript += "</script>" If (Not Page.IsStartupScriptRegistered("clientScript")) Then Page.RegisterStartupScript("clientScript", strscript) End IfEnd sub
it shall call the refereshparent
if i call the refresh in the alert()
the page refreshes with no alert being shown
where as i though that all operations were stopped until the user clicked ok
is it possible to sow the alert
then perform the refershparent when they click ok
thanks in advance