I have a gridview in that one View LinkButton. When click on Linkbutton open a new window. The problem here is click on the Refresh Button or F5 button. opened the another Window. How to prevent the Refresh button and F5 button in my page.
Code for View Link Button:
Try
Dim lbnDetails As LinkButton = CType(sender, LinkButton)
Dim gvRow As GridViewRow = CType(lbnDetails.NamingContainer, GridViewRow)
objLeaseSearch.LeaseID = gvwLeaseReviewSummary.DataKeys(gvRow.RowIndex).Values(0)
objLeaseSearch.LeaseVersionNumber = gvwLeaseReviewSummary.DataKeys(gvRow.RowIndex).Values(1)
ScriptManager.RegisterStartupScript
(Me.Page, Me.GetType(), "Window", "ViewInternalID();", True)
Catch ex As Exception
SetUserMessage(ex.Message, MessageType.ErrorMessage)
ErrorSignal.FromCurrentContext.Raise(ex)
End Try
End Sub
javascript code is :
function ViewInternalID()
{
window.open("demo.aspx",'_blank','width=800px,height=500px,scrollbars=yes, status=no, resizable');
}
Please any one help me...