Exemple #1
0
    protected void Button_choose_Click(object sender, EventArgs e)
    {
        this.U_updatenews1.Visible = false;
        this.U_insertnews1.Visible = false;
        this.Panel_news.Visible    = true;
        IList <News> newslist = new List <News>();
        UseFunc      uf       = new UseFunc();

        if (this.TextBox_key.Text == "")
        {
            newslist = uf.GetNewsIsused(true);
        }
        else
        {
            newslist = uf.GetNewsList(this.TextBox_key.Text);
        }
        bind(newslist);
    }