How to assign HTML value to a asp.net string variable

Posted by Zerotoinfinite on Stack Overflow See other posts from Stack Overflow or by Zerotoinfinite
Published on 2010-05-28T21:01:26Z Indexed on 2010/05/28 21:12 UTC
Read the original article Hit count: 172

Filed under:
|
|
|
|

I am using asp.net and C#. I want to send mail to my user in HTML format, I have the content in HTML format let say like this

    <table style="width:100%;">
     <tr>
       <td style="width:20%; background-color:Blue;"></td>
       <td style="width:80%; background-color:Green;"></td>
     </tr>
    </table>

Now I am unable to assign this to a string variable, so that I could send it as a mail. Please let me know how can I bind this whole HTML content into a varibale.

Also, please note that the above code is only a demo, I have around 100 lines of HTML code.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET