private Boolean FieldValidation()
        {
            if (txtflabel.Text.Trim() == "")
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["Control"] = "Field Label";
                IQCareMsgBox.Show("BlankTextBox", theBuilder, this);
                txtflabel.Focus();
                if (btnAdd.Text.ToString() != "Edit Custom Field")
                {
                    rbtntext.Checked = false;
                    rbtnnumber.Checked = false;
                }
                return false;
            }

            if (txtflabel.Text.Trim() == "")
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["Control"] = "Field Label";
                IQCareMsgBox.Show("BlankTextBox", theBuilder, this);
                txtflabel.Focus();
                if (btnAdd.Text.ToString() != "Edit Custom Field")
                {
                    rbtntext.Checked = false;
                    rbtnnumber.Checked = false;
                }
                return false;
            }
            if (htFeatures.Count < 1)
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["Control"] = "Forms";
                IQCareMsgBox.Show("BlankList", theBuilder, this);
                Chkformname.Focus();
                rbtntext.Checked = false;
                rbtnnumber.Checked = false;
                return false;
            }
            if (ControlChecked() == false)
            {
                MsgBuilder theMsg = new MsgBuilder();
                theMsg.DataElements["Control"] = "Select Options ";
                IQCareMsgBox.Show("UncheckedButton", theMsg, this);
                rbtntext.Checked = false;
                rbtnnumber.Checked = false;
                return false;
            }
            if ((rbtnselect.Checked == true) || (rbtnmulti.Checked == true))
            {
                if (btnAdd.Text.ToString() == "Add Custom Field")
                {
                    DataTable dtCheck = (DataTable)ViewState["CustomList"];
                    if (dtCheck == null)
                    {
                        MsgBuilder theBuilder = new MsgBuilder();
                        theBuilder.DataElements["Control"] = "List";
                        IQCareMsgBox.Show("BlankListValues", theBuilder, this);
                        return false;
                    }
                }
            }
            //If entered txtflabel includes special characters with it then remove them first
            //txtflabel.Text. =
            return true;
        }
    private Boolean FieldValidation()
    {
        if (txtflabel.Text.Trim() == "")
        {
            MsgBuilder theBuilder = new MsgBuilder();
            theBuilder.DataElements["Control"] = "Field Label";
            IQCareMsgBox.Show("BlankTextBox", theBuilder, this);
            txtflabel.Focus();
            if (btnAdd.Text.ToString() != "Edit Custom Field")
            {
                rbtntext.Checked   = false;
                rbtnnumber.Checked = false;
            }
            return(false);
        }

        //Check first letter should be alphanumeric
        //string labelSubString;
        //string strValidChars;

        //strValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-/";

        //labelSubString = txtflabel.Text.Substring(1, 1);
        //if (strValidChars.IndexOf(labelSubString) = 0)
        //{

        //}

        //Check for special chracters
        //strValidChars = "#?*/@";
        //if



        if (txtflabel.Text.Trim() == "")
        {
            MsgBuilder theBuilder = new MsgBuilder();
            theBuilder.DataElements["Control"] = "Field Label";
            IQCareMsgBox.Show("BlankTextBox", theBuilder, this);
            txtflabel.Focus();
            if (btnAdd.Text.ToString() != "Edit Custom Field")
            {
                rbtntext.Checked   = false;
                rbtnnumber.Checked = false;
            }
            return(false);
        }
        if (htFeatures.Count < 1)
        {
            MsgBuilder theBuilder = new MsgBuilder();
            theBuilder.DataElements["Control"] = "Forms";
            IQCareMsgBox.Show("BlankList", theBuilder, this);
            Chkformname.Focus();
            rbtntext.Checked   = false;
            rbtnnumber.Checked = false;
            return(false);
        }
        if (ControlChecked() == false)
        {
            MsgBuilder theMsg = new MsgBuilder();
            theMsg.DataElements["Control"] = "Select Options ";
            IQCareMsgBox.Show("UncheckedButton", theMsg, this);
            rbtntext.Checked   = false;
            rbtnnumber.Checked = false;
            return(false);
        }
        if ((rbtnselect.Checked == true) || (rbtnmulti.Checked == true))
        {
            if (btnAdd.Text.ToString() == "Add Custom Field")
            {
                DataTable dtCheck = (DataTable)ViewState["CustomList"];
                if (dtCheck == null)
                {
                    MsgBuilder theBuilder = new MsgBuilder();
                    theBuilder.DataElements["Control"] = "List";
                    IQCareMsgBox.Show("BlankListValues", theBuilder, this);
                    return(false);
                }
            }
        }
        //If entered txtflabel includes special characters with it then remove them first
        //txtflabel.Text. =
        return(true);
    }