试一试//adding data to session//assuming the method below will return list of Productsvar products=Db.GetProducts();//Store the products to a sessionSession["products"]=products;//To get what you have stored to a sessionvar products=Session["products"] as List<Product>;//to clear the session valueSession["products"]=null;