protected void btSaveShippinDetail_Click(object sender, EventArgs e) { //ShippingType deatils ShippingType.serShippingType inboundshippingdetail = new ShippingType.serShippingType(); DataSet dataset = inboundshippingdetail.ShippingType_GetAll(); DataRow dr = dataset.Tables[0].NewRow(); bool successfull = false; if (fromScreenToEntityShippingType(dr)) { dataset.Tables[0].Rows.Add(dr); successfull = inboundshippingdetail.UpdateShippingType(dataset); } if (successfull) { LabelErr.Text = "Shipping details was added"; } else { LabelErr.Text = "Transaction rolled back"; } }