protected void btnnew_Click(object sender, EventArgs e) { Whitfieldcore _wc = new Whitfieldcore(); _wc.AddBidAmount(Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(ViewState["Compeid"].ToString()), txtBidAmt.Text); lblMsg.Text = "Your record is added successfully."; }