void Scedulle() { saveBtn.ServerClick += delegate { var appTable = new Appointment(); List <Symptom_dataset> keywords_Tables = new Symptom_dataset().getAllRecords(); pairs = new Dictionary <string, int>(); foreach (var words in keywords_Tables) { List <string> MyDocList = new List <string>(); var txtArray = words.Symptom.Replace(",", "").Split(); for (int i = 0; i < txtArray.Length; i++) { MyDocList.Add(txtArray[i]); } var docType = new Speciality_table().Load_record_with(Speciality_table_support.Column.Speciality, Speciality_table_support.LogicalOperator.EQUAL_TO, words.Speciality); dictionary.Add(docType.Speciality, MyDocList); } schedule.GetDoctorsFromDb(dictionary, messageBox.Value, out List <string> doc); DataTable table = shiftHandler.GetTable(doc, true); Session["description"] = messageBox.Value; Session["table"] = table; Response.Redirect(nav.PatientHome); }; }