You are on page 1of 1

String sql = "" + Recipients.Text + ""; String[] arr = sql.Split(','); for (int i = 0; i < arr.Length; i++) { Response.Write(arr[i]); if (CDatabase.

ExecuteSQL(sql)) { sql = "Insert into Recipient(Status,EMailID,ReceiverID) sele ct ('1'),(select Max(EmailId) from Sender), '" + arr[i] + "' from Users where Us erName='" + arr[i] + "' And UserType='Student'"; } } String sql = "" + txtStaffId.Text + ""; String[] arr = sql.Split('('); Response.Redirect("Reports.aspx?Type=StaffPersonal&StaffId=" + a rr[0].ToString());

You might also like