protected void btnsaverefresh_Click(object sender, EventArgs e) { Whitfieldcore _wc = new Whitfieldcore(); if (Page.IsValid) { Boolean IsInsertSuccess = false; //lblTotSellPrice.text. this goes to the baseBid in the ProjectInfo IsInsertSuccess = _wc.UpdateParameters(ViewState["EstNum"].ToString(), Convert.ToDecimal(txtEngRate.Text.Trim()), Convert.ToDecimal(txtFabRate.Text.Trim()), Convert.ToDecimal(txtInstRate.Text.Trim()), Convert.ToDecimal(txtMiscRate.Text.Trim()), Convert.ToDecimal(txtOverHeadRate.Text.Trim()), Convert.ToDecimal(txtMarkUpPercent.Text.Trim()), Convert.ToDecimal(lblOHPercent.Text.Trim()), lblTotSellPrice.Text.Trim(), ddlTypeofWork.SelectedItem.Value); lblMsg.Text = "Your record is added successfully."; Server.Transfer("whitfield_estimation.aspx?EstNum=" + ViewState["EstNum"].ToString()); } }