Greetings all -
I am working on a vb .NET asp web application. I have a button that
opens a new page when clicked. It works fine; the problem is when the
user refreshes the original page, the script executes again even
though the button hasn't been clicked.
Here's the sub - the button is a standard ASP button with no
frills...
Protected Sub btnNew_Click(By Val sender As Object, ByVal e As
System.EventArg s) Handles btnNew.Click
Const INSERT_PAGE As String = "AddNewContact. aspx"
Dim URLArg As String = INSERT_PAGE & "?agreement ID=" &
agreementID
ClientScript.Re gisterStartupSc ript(Me.GetType , "popup",
"window.ope n('" & BASEURL & URLArg & "','_blank','me nubar=yes')",
True)
End Sub
This is making me a little crazy - any help would be greatly
appreciated. I've seen that others have had this problem, but can't
find any solution yet...
Thanks!
Danielle
I am working on a vb .NET asp web application. I have a button that
opens a new page when clicked. It works fine; the problem is when the
user refreshes the original page, the script executes again even
though the button hasn't been clicked.
Here's the sub - the button is a standard ASP button with no
frills...
Protected Sub btnNew_Click(By Val sender As Object, ByVal e As
System.EventArg s) Handles btnNew.Click
Const INSERT_PAGE As String = "AddNewContact. aspx"
Dim URLArg As String = INSERT_PAGE & "?agreement ID=" &
agreementID
ClientScript.Re gisterStartupSc ript(Me.GetType , "popup",
"window.ope n('" & BASEURL & URLArg & "','_blank','me nubar=yes')",
True)
End Sub
This is making me a little crazy - any help would be greatly
appreciated. I've seen that others have had this problem, but can't
find any solution yet...
Thanks!
Danielle
Comment