protected void btnnew_Click(object sender, EventArgs e)
 {
     String PrjNumber = "0";
     if (txtrealprjNumber.Text.Trim() == "")
     {
         PrjNumber = "0";
     }
     else
     {
         PrjNumber = txtrealprjNumber.Text.Trim();
     }
     Whitfieldcore _wc = new Whitfieldcore();
     if (Page.IsValid)
     {
         Boolean IsInsertSuccess = false;
         IsInsertSuccess = _wc.InsertEstimateMain(ViewState["EstNum"].ToString(),
             txtprjname.Text.Trim(),
             txtdesc.Text.Trim(),
             txtNotes.Text.Trim(),
             ddlprjtype.SelectedItem.Value,
             txtBidDate.Text.Trim(),
             txtEditStartTime.Text.Trim(),
             txtawardDate.Text.Trim(),
             txtARD.Text.Trim(),
             txtConstStdate.Text.Trim(),
             txtConstEndDate.Text.Trim(),
             txtConstDuration.Text.Trim(),
             "0",
             ddlPrjStatus.SelectedItem.Value,
             "0",
             ddlwonclient.SelectedItem.Value,
             ddlwoncompe.SelectedItem.Value,
             txtfinalbid.Text.Trim(),
             txtbasebid.Text.Trim(),
             "N",
             ddlarchitect.SelectedItem.Value,
             "Y",
             "Y",
             ddlEstimator.SelectedItem.Value, PrjNumber.Trim(),txtfabStartdate.Text.Trim(),txtfabEndDate.Text.Trim(),txtfabduration.Text.Trim(),txtStreet.Text.Trim(),txtCity.Text.Trim(),txtState.Text.Trim(),txtzip.Text.Trim());
         lblMsg.Text = "Your record is added successfully.";
     }
 }