Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //DataTable dt_person = BusinessSupply.BusinessOper.PersonAssociationBusiness.GetPersonWithEmailByAssociationId(associationid);
                DataTable dt = BasicInfoBusiness.GetBasicInfosForEmail();

                this.CheckBoxList1.DataSource     = dt;
                this.CheckBoxList1.DataTextField  = "Name";
                this.CheckBoxList1.DataValueField = "Id";
                this.CheckBoxList1.DataBind();
                CheckEmailAddress();
                Session["ReceiverId"] = null;
            }
        }
Example #2
0
 protected void btn_Search_Click(object sender, EventArgs e)
 {
     try
     {
         //if (this.ddl_MemberJob.SelectedValue != "")
         //{
         //string job = this.ddl_MemberJob.SelectedValue;
         DataTable dt = BasicInfoBusiness.GetBasicInfosForEmail();
         this.CheckBoxList1.DataSource     = dt;
         this.CheckBoxList1.DataTextField  = "Name";
         this.CheckBoxList1.DataValueField = "Id";
         this.CheckBoxList1.DataBind();
         CheckEmailAddress();
         Session["ReceiverId"] = null;
         //}
     }
     catch
     {
         ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alter", "alert('数据加载错误!')", true);
     }
 }