hi to all Xtremers,
i have a data table in session and i want to clear it with a single button click.
what i have is in global.aspx
Sub Session_Start(Sender AS Object, E AS EventArgs)
Dim tableCart AS DataTable
Dim columnCart AS DataColumn
tableCart = new DataTable("teste")
columnCart = tableCart.Columns.Add("quantity",System.Type.GetType("System.String") )
columnCart = tableCart.Columns.Add("prodID",System.Type.GetType("System.String") )
columnCart = tableCart.Columns.Add("prodName",System.Type.GetType("System.String") )
columnCart = tableCart.Columns.Add( "cost",System.Type.GetType("System.Double") )
Session("tableCart") = tableCart
end sub
when i want to clear the the Session("tableCart") what i do is put this code again associated with a button.
is there a better way to clear this session variable?
thx
i have a data table in session and i want to clear it with a single button click.
what i have is in global.aspx
Sub Session_Start(Sender AS Object, E AS EventArgs)
Dim tableCart AS DataTable
Dim columnCart AS DataColumn
tableCart = new DataTable("teste")
columnCart = tableCart.Columns.Add("quantity",System.Type.GetType("System.String") )
columnCart = tableCart.Columns.Add("prodID",System.Type.GetType("System.String") )
columnCart = tableCart.Columns.Add("prodName",System.Type.GetType("System.String") )
columnCart = tableCart.Columns.Add( "cost",System.Type.GetType("System.Double") )
Session("tableCart") = tableCart
end sub
when i want to clear the the Session("tableCart") what i do is put this code again associated with a button.
is there a better way to clear this session variable?
thx