Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 228269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:40:04+00:00 2026-05-11T19:40:04+00:00

ASP.NET is great for creating html. We send out a lot of html email

  • 0

ASP.NET is great for creating html. We send out a lot of html email messages. In the past we’ve been loading .html templates with key strings that are replaced to make the email more custom (ie. [[FirstName]] would be replaced with “John Doe”). However as we are adding more and more email campaigns the logic to customize the email is starting to get out of hand. Instead of a simple [[FirstName]] string replace we are tasked with something like [[ScholarshipList]] where the ScholarshipList is different for each user we send an email to.

Ideally, at least in my mind, these email templates would be self contained .aspx pages. And would be invoked from our winform emailer application in a manner similar to

IEmailTemplate template = EmailTemplates.Load("ScholarshipList.aspx");
template.UserID=1234;
string emailMessage = template.Render();

Then the ScholarshipList.aspx page would look similar to any other asp.net page in that it can have server controls, runat=”server” scripts and databind.

I’ve seen this article http://www.west-wind.com/presentations/aspnetruntime/aspnetruntime.asp which looks promising. Has anyone used it before? It uses some remoting which ideally would be avoided, and has a limited error handling mechanisms. I thought I’d get some other feedback before I went to far down that road.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:40:05+00:00Added an answer on May 11, 2026 at 7:40 pm

    You could try this approach as well. http://jamesewelch.com/2008/07/11/how-to-render-a-aspnet-user-control-within-a-web-service-and-return-the-generated-html/

    If you hosted your templates in a webservice and then invoked them from your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The CSS Friendly Control Adapters for ASP.NET are great for creating markup that is
Brad Wilson posted a great blog series on ASP.NET MVC's new ModelMetaData: http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html In
I have created a great stand-alone web form in asp.net utilizing many jQuery features
I am just getting started with ASP.NET MVC and it's great! However, I don't
ASP.NET MVC can generate HTML elements using HTML Helpers, for example @Html.ActionLink() , @Html.BeginForm()
We are creating a new site using ASP.NET membership provider for user registration and
I'm working on creating a new base class for an asp.net app in order
My application (Asp.Net MVC) has great interaction with the user interface (jQuery/js). For example,
I'm using Reimers ASP.NET control wich is great. But now I'm having a little
I have seen a great feature of ASP.NET 4, the property of server controls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.