G
Guest
Hi all,
I'm having a problem with session variables in vs .net 2003. I start by
doing this:
If Not IsPostBack Then
Dim dt As DataTable
Me.daAlias.Fill(Me.DsPhysicalAlias)
dt = Me.DsPhysicalAlias.Tables(0)
Session("tblAlias") = dt
Session("tblAliasOriginal") = dt
BindGrid()
End If
I want to load dt into two session variables, make whatever changes I want
to tblAlias, and then, compare it with tblAliasOriginal, to see the changes
I've made.
I have a datagrid to make changes to tblAlias and I delete a row using:
Dim dtAlias As DataTable
dtAlias = Session("tblAlias")
dtAlias.Rows(e.Item.ItemIndex).Delete()
dtAlias.AcceptChanges()
Session("tblAlias")
BindGrid()
My problem is that when I delete a row in tblAlias, that row is also deleted
from tblAliasOriginal! Why? How can I prevent this?
I'm having a problem with session variables in vs .net 2003. I start by
doing this:
If Not IsPostBack Then
Dim dt As DataTable
Me.daAlias.Fill(Me.DsPhysicalAlias)
dt = Me.DsPhysicalAlias.Tables(0)
Session("tblAlias") = dt
Session("tblAliasOriginal") = dt
BindGrid()
End If
I want to load dt into two session variables, make whatever changes I want
to tblAlias, and then, compare it with tblAliasOriginal, to see the changes
I've made.
I have a datagrid to make changes to tblAlias and I delete a row using:
Dim dtAlias As DataTable
dtAlias = Session("tblAlias")
dtAlias.Rows(e.Item.ItemIndex).Delete()
dtAlias.AcceptChanges()
Session("tblAlias")
BindGrid()
My problem is that when I delete a row in tblAlias, that row is also deleted
from tblAliasOriginal! Why? How can I prevent this?