ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1735
Number of posts: 3307

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How do I save an ASP.NET form as a .txt or .hrml on the slient side? Posted by nakrami on 10 Oct 2003 at 9:41 AM
Hi,

I would like to know how I can save an ASP.NET form containing a number of controls (textboxes, labels, dropdowns, and etc.) as an .txt or .html format on the client side. I then need this .txt or .html file to be attached to the e-mail and eventually be tasked in Outlook.

I appreciate any input on this.

Thanks a lot.
Report
Re: How do I save an ASP.NET form as a .txt or .hrml on the slient sid Posted by iwilld0it on 12 Oct 2003 at 7:00 AM
: Hi,
:
: I would like to know how I can save an ASP.NET form containing a number of controls (textboxes, labels, dropdowns, and etc.) as an .txt or .html format on the client side. I then need this .txt or .html file to be attached to the e-mail and eventually be tasked in Outlook.
:
: I appreciate any input on this.
:
: Thanks a lot.
:

You can use the SmtpMail component from the System.Web.Mail namespace. Basically build the HTML you want to attach and save it as an HTML file using StreamReader and StreamWriter from the System.IO namespace. Using SmtpMail you can attach that saved file.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.