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(); }
public void StadardStatus() { var FillTable = new SqlConnClass(); gvProjects.DataSource = FillTable.RetrieveAllProjectsInfo(); gvProjects.DataBind(); Clear(); DisableBox(true); ButtonStatus(true, false); }