Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Use image tag to display the image in your body of the mail.</p> <p>Instead of storing the image in to DB refer the image path. Do the following steps </p> <ol> <li>Just upload the image in to you're server location.</li> <li>Store the image path in to DB</li> <li>Get the image path from DB and bind it to image source.</li> </ol> <p>For Example.</p> <pre><code> &lt;img height="" width="" border="0" alt="" src="https://www.xyz.com/images/123.jpg"&gt;&lt;/img&gt; </code></pre> <p><br> Bindling the image URL</p> <pre><code>&lt;tr&gt;&lt;td&gt; &lt;img height="" width="" border="0" alt=" src="+ myds.Tables[1].Rows[0].Field&lt;string&gt;("imageurl").ToString() + "&gt;&lt;/img&gt;&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>Your entire code could be..</p> <pre><code>message.Body = "Dear " + myds.Tables[0].Rows[0].Field&lt;string&gt;("C_Name").ToString() + " &lt;br /&gt; &lt;br /&gt; Your Registrtion is Successfull...&lt;br/&gt;&lt;br/&gt;&lt;table border='4'&gt;&lt;tr&gt;&lt;td&gt;Name = " + myds.Tables[0].Rows[0].Field&lt;string&gt;("C_Name").ToString() + " &lt;/td&gt;&lt;td&gt; Pax= " + myds.Tables[1].Rows[0].Field&lt;int&gt;("pax").ToString() + "&lt;/td&gt; &lt;/tr&gt; **&lt;tr&gt;&lt;td&gt; &lt;img height="" width="" border="0" alt=" src="+ myds.Tables[1].Rows[0].Field&lt;string&gt;("imageurl").ToString() + "&gt;&lt;/img&gt;&lt;/td&gt; &lt;/tr&gt;** &lt;tr&gt;&lt;td&gt;Della Adventure,Kunegao,Lonavala&lt;/td&gt;&lt;td&gt;CheckIn Date= " + myds.Tables[0].Rows[0].Field&lt;string&gt;("Checkin_date").ToString() + "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload