It sounds like you're trying to do something similar to what we're seeking a
solution for. In our case, we have people fill out an online form, which is
designed to look very much like our client's traditional printed forms.
Then when the user submits it, we need to send an HTML email to the
appropriate person. The effect is that the employee gets a form they can
print out that looks like forms customers filled out the old fashioned way.
The way we've done it in ASP is by writing a whole lotta "str = str & ..."
We've gotten it down to where it's pretty easy (but still ugly): Copy the
HTML produced by the ASP page; paste into the editor of your choice; prepend
each line with "str = str & "; tack a closing quote on the end; substitute
the <INPUT ...> tags with the <%= variable they filled in;
But, as noted, it's ugly.
On a Java site where I worked, they use the 'mailer2' taglib, which makes it
pretty easy to generate HTML email on the fly. I'm looking for something
similar in asp.net. Kind of a control that lets you define the HTML in its
body, complete with variables, that sends an email.
If anybody knows of such a thing, or has other suggestions, please share!
Dave
ziros said:
Ill try to explain better
As a user fill out a form (that might be just for defined period of time) we
have the
need to save the aspx page with the data as is, as a document that can't be
chaged.
It's like the a user statement fiiling a form.
than we want to save this page to a Database (as image or as html or pdf )
and to retrieve it later on just for viewing.
the page must saved as is with it's design.
TIA
:
We have a need, after a user fill out a form, to save that page (aspx)
and to send it as attachment by email , and to save it to a database for later
retrieval [the user will not be able to change nothing on page after submit]
any ideas how to save the aspx with user data to file ? maybe image ?
TIA
Attachments...
http://www.google.com/search?hl=en&q=asp.net+email+attachment
But are you sure that you need to have an attachment? A form can be
sent as a plain text message, in this case (depends on your need) it
can be saved as a text in the database, or in a "table" format (each
form field = a column in a table).