示例#1
0
        protected void lbtnSave_Click(object sender, EventArgs e)
        {
            YouthNewsColumn model = new YouthNewsColumn();
            YouthNewsColBLL bll   = new YouthNewsColBLL();

            model.News_column_name = txtName.Text.ToString();
            if (bll.AddNewsCol(model))
            {
                AUTO.Utility.MyUtil.ShowMessageRedirect(this.Page, "添加成功", "NewsColList.aspx");
            }
            else
            {
                AUTO.Utility.MyUtil.ShowMessage(this.Page, "添加失败");
            }
        }