Never mind
Changed the load event to
VB Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load objCartDT = Session("Cart") If objCartDT Is Nothing Then lblNoItems.Text = "There are no items in your cart." Else lblTotal.Text = "Total: $" & GetItemTotal() End If If Not IsPostBack Then ' need to load this data only once BindGrid() End If End Sub Sub BindGrid() dgCart.DataSource = objCartDT dgCart.DataBind() End Sub
And it works fine now.![]()




Reply With Quote