コード例 #1
0
        protected void saveButton_Click(object sender, EventArgs e)
        {
            ProjectControllerCSD pcon = new ProjectControllerCSD();

            pcon.CreateProject(projectNameTextBox.Text, descriptionTextBox.Text, clientTextBox.Text,
                               Convert.ToDateTime(startDate.CalendarDate.Date), Convert.ToDateTime(endDate.CalendarDate.Date),
                               int.Parse(Session["InsertedBy"].ToString()));
        }
コード例 #2
0
        protected void searchButton_Click(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();
            ProjectControllerCSD pc = new ProjectControllerCSD();

            ds = pc.searchProject(projectNameTextBox.Text);
            projectGridView.DataSource = ds;
            projectGridView.DataBind();
        }