protected void Page_Load(object sender, EventArgs e) { this.StoreZipCodesBo = (Storezipcodes)this.RegisterBizObj(new Storezipcodes()); this.StoreZipCodesBo.DatabaseKey = "DEVELOPMENT"; // Session["CompID"].ToString(); if (!this.IsPostBack || this.Session["StoreZipCodesBo"]==null) { this.getData(); } else { this.StoreZipCodesBo.SetCurrentDataSet((DataSet)this.Session["StoreZipCodesBo"]); } } protected void getData() { this.StoreZipCodesBo.GetAllEntities(); if (this.StoreZipCodesBo.EntityList.Count == 0) this.StoreZipCodesBo.NewEntity(); this.Session["StoreZipCodesBo"] = this.StoreZipCodesBo.GetCurrentDataSet(); }Thanks