Example #1
0
    /// <summary>
    /// 新闻类型
    /// </summary>
    private void SetNewsType()
    {
        this.ddlType.DataSource = bll.SetNewsType();
        this.ddlType.DataBind();
        ListItem liTemp = new ListItem();

        liTemp.Text  = "全部资讯";
        liTemp.Value = "-1";
        ddlType.Items.Insert(0, liTemp);
    }
Example #2
0
 /// <summary>
 /// 新闻类型
 /// </summary>
 private void SetNewsType()
 {
     this.ddlNewsType.DataSource     = bllIn.SetNewsType();
     this.ddlNewsType.DataTextField  = "NewsTypeName";
     this.ddlNewsType.DataValueField = "NewsTypeID";
     this.ddlNewsType.DataBind();
 }