protected void btnnew_Click(object sender, EventArgs e)
    {
        Whitfield_Project _wc = new Whitfield_Project();
        if (Page.IsValid)
        {
            Boolean IsInsertSuccess = false;
            IsInsertSuccess = _wc.InsertEstimateMain(
                ViewState["EstNum"].ToString(),
                ViewState["twc_project_number"].ToString(),
                txtprjname.Text.Trim(),
                txtdesc.Text.Trim(),
                txtNotes.Text.Trim(),
                ddlprjtype.SelectedItem.Value,
                txtConstStdate.Text.Trim(),
                txtConstEndDate.Text.Trim(),
                txtConstDuration.Text.Trim(),
                "0",
                ddlPrjStatus.SelectedItem.Value,
                "0",
                ddlwonclient.SelectedItem.Value,
                txtfinalbid.Text.Trim(),
                "N",
                ddlarchitect.SelectedItem.Value,
                "Y",
                "Y"
                ,txtClientPrjNumber.Text.Trim()
                ,txtContractNumber.Text.Trim(),txtMatContCost.Text.Trim(),txtOverheadCost.Text.Trim());

            InsertInstallers();
            lblMsg.Text = "Your record is added successfully.";
        }
    }