My DataGrid hyperlink works correctly after following the help from this forum. When I click on the hyperlink on the datagrid Column, it reads and transfers my ID# to Form2.and populates my textboxes correctly.
My problem is that, this action opens Form2 on a new browser. So I have Form1 and Form2 browsers sitting on my status bar. If I open Form1 and select another record's hyperlink, a third Form2 browser opens up again. It goes on and on.
How can I better code this to stop this from happening?
To go to Form2 I have the following code-behind on Form1's HyperLink :
Private Sub NewDataGrid_SelectedIndexChanged (...)
Dim strRedirect As Integer
strRedirect = "GetForm1.aspx?ID#"
Response.Redirect(strRedirect, True)
Thanks in advance.
My problem is that, this action opens Form2 on a new browser. So I have Form1 and Form2 browsers sitting on my status bar. If I open Form1 and select another record's hyperlink, a third Form2 browser opens up again. It goes on and on.
How can I better code this to stop this from happening?
To go to Form2 I have the following code-behind on Form1's HyperLink :
Private Sub NewDataGrid_SelectedIndexChanged (...)
Dim strRedirect As Integer
strRedirect = "GetForm1.aspx?ID#"
Response.Redirect(strRedirect, True)
Thanks in advance.