Exemple #1
0
 protected void btnSearch_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         CustomerParam cstpara = new CustomerParam();
         if (!string.IsNullOrEmpty(this.txtKHID.Text))
         {
             cstpara.KHID = this.txtKHID.Text.Trim();
         }
         if (!string.IsNullOrEmpty(this.txtKHName.Text))
         {
             cstpara.KHName = this.txtKHName.Text.Trim();
         }
         DataSet ds = cstpara.GetListByEnter();
         if (ds != null)
         {
             this.grdKHInfo.DataSource = ds;
             this.grdKHInfo.DataBind();
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }