emalid john_11@gmail.com (this is new record then check box enabled) kety_45@yahoo.com ( admin already check in this and mail send then check box must be disabled)
protected void btnSendMail_Click(object sender, EventArgs e) { string connStr = ConfigurationManager.ConnectionStrings["email"].ConnectionString; SqlConnection mySQLconnection = new SqlConnection(connStr); string empId = string.Empty; DataTable dt = new DataTable(); try { mySQLconnection.Open(); for (int i = 0; i < Repeateremail.Items.Count; i++) { CheckBox checkboc = ((CheckBox)Repeateremail.Items[i].FindControl("chkSelect")); if (checkboc != null) { if (checkboc.Checked == true) { string emailId = ((Label)Repeateremail.Items[i].FindControl("lbl_email")).Text; SendEmailUsingGmail(emailId); dt.Clear(); dt.Dispose(); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)