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]

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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -