tengo un problema con c# al cargar mi session en mi DataTable algo estoy haciendo mal ayudemen
public void CrearCarrito()
{
//Declara la tabla
DataTable objDT = new DataTable("Carrito");
objDT.Columns.Add(new DataColumn("ProductID", typeof(int)));
objDT.Columns.Add(new DataColumn("ProductName", typeof(string)));
objDT.Columns.Add(new DataColumn("UnitPrice", typeof(decimal)));
objDT.Columns.Add(new DataColumn("Quantity", typeof(int)));
objDT.Columns.Add(new DataColumn("Subtotal", typeof(decimal)));
Session["Carrito"] = objDT;
}
public void AgregarItemAlCarrito()
{
DataTable objDT;
DataRow objDR;
int Quantity;
decimal UnitPrice, Subtotal;
//Realizando calculos
UnitPrice = Decimal.Parse(txtUnitPrice.Text);
Quantity = Int32.Parse(txtQuantity.Text);
Subtotal = UnitPrice * Quantity;
//Obtener el carrito existente
objDT = Session["Carrito"];
}