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())); }
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(); }