示例#1
0
 public void BindType()
 {
     dropType.DataSource     = NewsTypeBll.GetAllNewsType();
     dropType.DataTextField  = "TypeName";
     dropType.DataValueField = "NewsTypeId";
     dropType.DataBind();
     dropType.Items.Insert(0, "--请选择新闻类型--");
 }
示例#2
0
 public void BindDrop()
 {
     dropNewsType.DataSource     = NewsTypeBll.GetAllNewsType();
     dropNewsType.DataTextField  = "TypeName";
     dropNewsType.DataValueField = "NewsTypeId";
     dropNewsType.DataBind();
     dropNewsType.Items.Insert(0, "显示全部");
 }