Suggestions for .NET Emails Please

G

Guest

Hi,
Currently I have a VB.NET app which sends an HTML email to a customer. The
email has a textbox form field and submit button. The customer inputs a
date, clicks submit and that form sends the information to an ASPX page we
have on our webserver which updates the database with the information.

The problem is that some email programs like Outlook will not Submit the
form properly, due possibly to the security settings. So what we intend to
do is add a link button at the bottom of the email saying "If you're having
trouble with the Submit button 'Click Here' to input your date".
When they "click here" it'll bring them to an ASPX webpage where they can
input the date. The webpage will look exactly like the email.

The issue is that i do not want to duplicate the HTML code in the program
which sends the emails, and the ASPX page, because if the email needs to be
redesigned, i'll also need to redesign the webpage.

Is there a way for the two apps to share an HTML template? I was hoping
that I could somehow store an HTML file in SQL and either program could get
the template there. I tried this but could not see how to do this.

Any advice would be greatly appreciated.

Thanks,
John
 
R

Robbe Morris - [MVP] C#

Is there a reason you don't just write a method to dynamically
create the section of the page. Then, call it in in the aspx page itself
or when you generate the email? Each of the html controls has
a RenderControl that enables you to extract the html.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top