I'm writing a small demo to send email with list data which is store in database. After i get data from database, i have try to create data as a string like this :
<table>
<tr><th>Product Name</th><th>Product Code</th><th>Quantity</th></tr>
<tr><td>Ipad</td><td>iP</td><td>10</td></tr>
</table>
and pass into xslt as a param and load the xslt file as xml then send it to email. By i get error "Name cannot begin with the '<' character". Is there solution for this or another way to display data into html and send it to email ?
My code :
var objXslt = new XslCompiledTransform();
objXslt.Load(EmailTemplate);
var xmlDoc = new XmlDocu ...
Go to the complete details ...