Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I would like to take the screen shot of the web from when it is submitted "developed in c#".

And it needed to be attached i the body of the email not as a pdf attachment.

Please help me.

Thanks,
Sathish
Posted
Comments
Richard MacCutchan 3-Jan-14 7:24am    
Help with what? This is just a list of requirements, and you can find details of all these items by searching with Google.

Since C# runs on the server you can't use it to get a screen shot of the user's screen. You could just use JS and get the form or the whole html and include that.

See http://experiments.hertzen.com/jsfeedback/[^]
 
Share this answer
 
When form is submitted to the Server, you get all the field values.
So, you can build a String with StringBuilder class taking all the field values. You can also include HTML tags while building the String, so that the whole String would become a HTML string.

While sending email, assign or append this HTML String to the email Body Property and don't forget to set AllowHtml property to true.

If you do this way, it will render the HTML inside the mail properly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900