how to bind dataset values in html table in C#? where my html table is written in txt file and it gets appended to mailbody -
[html script of table appended mail], used streamreader read txt file , created new outlook application draft email , wrote mail.htmlbody+=textstream.tostring(); whereas dataset contains values database. ![][1]](https://i.stack.imgur.com/8rfu5.png)
instead of writing c# code in txt file can use placeholders <<<place_holder_for_dsclinkkey>>>. 
string tmpbody = textstream.tostring().replace(<placeholder>, <actualdbvalue>);   do above placeholders.
and finally
mail.htmlbody+=tmpbody ;      
Comments
Post a Comment