Пример #1
0
 protected virtual void PopulateLabels()
 {
     //fullcontent.WebEditor.ToolBar = ToolBar.FullWithTemplates;
     //fullcontent.WebEditor.Height = Unit.Pixel(500);
     //shortcontent.WebEditor.ToolBar = ToolBar.FullWithTemplates;
     //shortcontent.WebEditor.Height = Unit.Pixel(500);
     ddlnewtype.DataSource = KLNewsType.GetAll().Where(kt => kt.ParentID == -1);
     ddlnewtype.DataBind();
     ddlnewtypechild.DataSource = KLNewsType.GetAll().Where(nt => nt.ParentID.ToString() == ddlnewtype.SelectedValue);
     ddlnewtypechild.DataBind();
 }
Пример #2
0
 private void Ddlnewtype_SelectedIndexChanged(object sender, EventArgs e)
 {
     ddlnewtypechild.DataSource = KLNewsType.GetAll().Where(nt => nt.ParentID.ToString() == ddlnewtype.SelectedValue);
     ddlnewtypechild.DataBind();
 }
Пример #3
0
 private void getNewsType()
 {
     ddlParent.DataSource = KLNewsType.GetAll().Where(p => p.IsDelected != true).ToList();
     ddlParent.DataBind();
 }