D
Danielle
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(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnNew.Click
Const INSERT_PAGE As String = "AddNewContact.aspx"
Dim URLArg As String = INSERT_PAGE & "?agreementID=" &
agreementID
ClientScript.RegisterStartupScript(Me.GetType, "popup",
"window.open('" & BASEURL & URLArg & "','_blank','menubar=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(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnNew.Click
Const INSERT_PAGE As String = "AddNewContact.aspx"
Dim URLArg As String = INSERT_PAGE & "?agreementID=" &
agreementID
ClientScript.RegisterStartupScript(Me.GetType, "popup",
"window.open('" & BASEURL & URLArg & "','_blank','menubar=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