protected void saveButton_Click(object sender, EventArgs e) { Disease aDisease = new Disease(); aDisease.Name = diseaseNameTextBox.Text; aDisease.Description = descriptionTextBox.Text; aDisease.Treatment = treatmentProcedureTextBox.Text; savelable.Text = aDiseaseManager.Insert(aDisease); dieseaseGridView.DataSource = aDiseaseManager.GetAllDisease(); dieseaseGridView.DataBind(); }
protected void saveDiseaseButton_OnClick(object sender, EventArgs e) { disease.Name = nameTextBox.Text; disease.Description = Request.Form["descriptionTextBox"]; disease.TreatmentProcedure = treatmentProcedureTextBox.Text; string message = diseaseManager.Insert(disease); label4.Text = message; GetLoadedGridView(); }