public void cargarHistorial(int AuctionID) { SubastaBLL bl = new SubastaBLL(); Auction subasta = new Auction(); subasta = bl.cargarSubastaHistorial(AuctionID); txtProducto.Text = subasta.ProductName; txtDescripcion.Text = subasta.Description; List<AuctionRecord> lstRecord = new List<AuctionRecord>(); lstRecord = bl.cargarAuctionrecord(AuctionID); ViewState["lstRecord"] = lstRecord; grdHistorial.DataSource = lstRecord; grdHistorial.DataBind(); ScriptManager.RegisterStartupScript(this, typeof(Page), "calculateTotal", "calculateTotal()", true); }