A
AAaron123
In Page_Load I have the following wanting the popup to appear the first time
(only) that the page is displayed. I get it each time. Can this be fixed?
thanks
Static beenHere As Boolean = False
If Not beenHere Then
beenHere = True
Dim csname1 As String = "PopupScript"
Dim cstype As Type = Me.GetType()
Dim csm As ClientScriptManager = Page.ClientScript
If (Not csm.IsStartupScriptRegistered(cstype, csname1)) Then
Dim cstext1 As New StringBuilder()
cstext1.Append("alert('This is ")
cstext1.Append("some text.');")
csm.RegisterStartupScript(cstype, csname1, cstext1.ToString, True)
End If
End If
(only) that the page is displayed. I get it each time. Can this be fixed?
thanks
Static beenHere As Boolean = False
If Not beenHere Then
beenHere = True
Dim csname1 As String = "PopupScript"
Dim cstype As Type = Me.GetType()
Dim csm As ClientScriptManager = Page.ClientScript
If (Not csm.IsStartupScriptRegistered(cstype, csname1)) Then
Dim cstext1 As New StringBuilder()
cstext1.Append("alert('This is ")
cstext1.Append("some text.');")
csm.RegisterStartupScript(cstype, csname1, cstext1.ToString, True)
End If
End If