Send the current page as mail or get the Current page html
asp.net, c#, email
Solution
If you want to get HTML of your page server side so that you can mail it, Try this
StringWriter str_wrt = new StringWriter();
HtmlTextWriter html_wrt = new HtmlTextWriter(str_wrt);
Page.RenderControl(html_wrt);
String HTML = str_wrt.ToString();
Problem
I need to send the current page content as a mail. Any Idea How we can Do that. My Idea is to get the html code of the page and send it as such. But Don't know how to get the html code of the page.