G
Guest
Hi there
I am using a button column>SELECT and a datagrid.Item_Command to take a
value from the datagrid (in this case a customer account number) - store that
value in to a session variable and transfer to another page which picks up
the session variable and uses it to display information for that particular
customer:
Public Sub CustomerSearchGrid_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
CustomerSearchGrid.ItemCommand
If e.Item.ItemIndex >= 0 Then
Dim Ownercell1 As TableCell = CType(e.Item.Controls(1), TableCell)
UserSession.Current.CurrentAccNumber = Ownercell1.Text & "%"
Server.Transfer("/webapplication/CustomerBasicInfo.aspx")
End If
End Sub
This works great on the first click. However, if I then click on BACK and
choose another customer by clicking SELECT on the datagrid the above event
does not fire - anyone know what I am doing wrong please ???
Thanks very much for your help
I am using a button column>SELECT and a datagrid.Item_Command to take a
value from the datagrid (in this case a customer account number) - store that
value in to a session variable and transfer to another page which picks up
the session variable and uses it to display information for that particular
customer:
Public Sub CustomerSearchGrid_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
CustomerSearchGrid.ItemCommand
If e.Item.ItemIndex >= 0 Then
Dim Ownercell1 As TableCell = CType(e.Item.Controls(1), TableCell)
UserSession.Current.CurrentAccNumber = Ownercell1.Text & "%"
Server.Transfer("/webapplication/CustomerBasicInfo.aspx")
End If
End Sub
This works great on the first click. However, if I then click on BACK and
choose another customer by clicking SELECT on the datagrid the above event
does not fire - anyone know what I am doing wrong please ???
Thanks very much for your help