Re: Saving aspx to file or other solution
- From: "Dave Bender" <dave@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 May 2007 18:27:02 -0500
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" <ziros@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:73FC82F7-C354-4D9D-965A-8C333B5F1AAF@xxxxxxxxxxxxxxxx
Ill try to explain betterwe
As a user fill out a form (that might be just for defined period of time)
have thebe
need to save the aspx page with the data as is, as a document that can't
chaged.for later
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
"Alexey Smirnov" wrote:
On May 8, 8:22 am, ziros <z...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
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
submit]retrieval [the user will not be able to change nothing on page after
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).
.
- Follow-Ups:
- Re: Saving aspx to file or other solution
- From: ziros
- Re: Saving aspx to file or other solution
- References:
- Re: Saving aspx to file or other solution
- From: Alexey Smirnov
- Re: Saving aspx to file or other solution
- Prev by Date: Default app?
- Next by Date: Re: FORM
- Previous by thread: Re: Saving aspx to file or other solution
- Next by thread: Re: Saving aspx to file or other solution
- Index(es):
Relevant Pages
|