コード例 #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            SqlConnClass saveNow = new SqlConnClass();

            saveNow.AddNewProjects(txtProjectCode.Text.Trim(), txtProjectTitle.Text.Trim(), Convert.ToDateTime(txtDueDate.Text.Trim()));
            gvProjects.DataSource = saveNow.RetrieveAllProjectsInfo();
            gvProjects.DataBind();
            StadardStatus();
        }
コード例 #2
0
        public void StadardStatus()
        {
            var FillTable = new SqlConnClass();

            gvProjects.DataSource = FillTable.RetrieveAllProjectsInfo();
            gvProjects.DataBind();
            Clear();
            DisableBox(true);
            ButtonStatus(true, false);
        }