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 -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -