I need to make the select SQL Server. But the result must be displayed in the array, as it is an email marketing html.
What is the best way to display this select information within the result.
sqlConn = (System.Data.SqlClient.SqlConnection)cm.AcquireConnection(null);
sqlComm = new System.Data.SqlClient.SqlCommand("SELECT NAMEPRODUCTS, QTD, PRICE, STATUS_PROD FROM PRODUCTS", sqlConn);
sqlDados = sqlComm.ExecuteReader();
while (sqlDados.Read())
{
//WHAT TO DO HERE ?
}
return "TITLE EMAIL MARKETING</h1> <br> TABLE HTML WITH RESULT SQL SERVER - HOW TO DISPLAY INFORMATION IN THIS RESULT";