protected void AddICDChapterGroupButton_Click(object sender, EventArgs e) { Button btn = (Button)sender; String btnId = btn.ID; if (btnId.Equals("AddICDChapterButton")) { if (IsValid) { System.Threading.Thread.Sleep(3000); var icdChapterName = NameTextBox.Text; var icdChapter = new IcdChapter() { icdChapterName = icdChapterName }; _dataContext.IcdChapters.InsertOnSubmit(icdChapter); _dataContext.SubmitChanges(); IcdChapterList.DataBind(); ResetInputField(); } } else if (btnId.Equals("ResetICDChapterGroupButton")) { ResetInputField(); } }
partial void DeleteIcdChapter(IcdChapter instance);
partial void UpdateIcdChapter(IcdChapter instance);
partial void InsertIcdChapter(IcdChapter instance);