Beispiel #1
0
        //查找按钮
        protected void btnFind_Click(object sender, EventArgs e)
        {
            string  moduleName = txtName.Text.Trim();
            DataSet ds         = moduleBll.GetModuleByName(moduleName);

            if (ds != null)
            {
                gvInfo.DataSource = ds.Tables[0].DefaultView;
                gvInfo.DataBind();
            }
            else
            {
                lbShow.Text = "没有找到符合条件的记录!";
                this.GridViewBd();
            }
        }