string mySQL = "SELECT subject_id," + " message,phone_no from massMessage";
SqlDataAdapter adapter = new SqlDataAdapter(mySQL, conn);
DataSet ds = new DataSet();
adapter.Fill(ds, "phone_no , message");
DataTable tblNumbers = ds.Tables["phone_no"];
DataRow drNum = null;
DataTable tblMsg = ds.Tables["message"];
DataRow drMsg = null;
foreach (DataRow drNum_loopVariable in tblNumbers.Rows)
{
//send msg logic or send mail logic
//with dr["number"].tostring()
drNum = drNum_loopVariable;
InsertSMSRecord(drNum["phone_no"].ToString());
foreach (DataRow drMsg_loopVariable in tblMsg.Rows)
{
drMsg = drMsg_loopVariable;
InsertSMSRecord(drMsg["message"].ToString());
}
}
Why is there error on those underlined?