protected void LnkBeginLesson_Click(object sender, EventArgs e) { LinkButton Lnk = sender as LinkButton; LtrTitle.Text = "Dərsə başla"; BtnAddLessons.CommandArgument = Lnk.CommandArgument; if (Lnk.Attributes["data-iscomplate"] == "0") { Config.RedirectURL(string.Format("/tools/electronicregistry/lessons/?i={0}", (Lnk.CommandArgument + "-" + Lnk.Attributes["data-servicescourseslessonsid"] + "-" + DALC._GetUsersLogin.Key).Encrypt())); return; } DListTeacherUsers.DataSource = DALC.GetUsersByOrganizationsID(int.Parse(Lnk.CommandName)); DListTeacherUsers.DataBind(); DListTeacherUsers.SelectedValue = Lnk.Attributes["data-teacherusersid"]; DListServicesCoursesPlans.DataSource = DALC.GetServicesCoursesPlans(int.Parse(Lnk.CommandArgument)); DListServicesCoursesPlans.DataBind(); DListServicesCoursesPlans.Items.Insert(0, new ListItem("--", "-1")); TxtCreate_Dt.Text = DateTime.Now.ToString("dd.MM.yyyy"); GrdServicesCoursesPlans.DataSource = DALC.GetServicesCoursesPlans(int.Parse(Lnk.CommandArgument)); GrdServicesCoursesPlans.DataBind(); Config.Modal(); }
protected void DListOrganizations_SelectedIndexChanged(object sender, EventArgs e) { DListTeacherUsers.DataSource = DALC.GetUsersByOrganizationsID(int.Parse(DListOrganizations.SelectedValue)); DListTeacherUsers.DataBind(); DListTeacherUsers.Items.Insert(0, new ListItem("--", "-1")); PnlTeacherUsers.Visible = DListTeacherUsers.Items.Count > 1; }