protected void btnDrawingDate_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.UpdateDrawingDate(ViewState["EstNum"].ToString(), txtDrawingDt.Text.Trim()); lblMsg.Text = "Your record is added successfully."; Server.Transfer("whitfield_estimation.aspx?EstNum=" + ViewState["EstNum"].ToString()); } }