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 1058195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:59:19+00:00 2026-05-16T17:59:19+00:00

I need to write a system to generate HTML email from a data model

  • 0

I need to write a system to generate HTML email from a data model –

I was going to create a templating system to build the model into an HTML representation using HTML ‘fragments’ stored in an xml template. But it occurs to me that these it might be better to use asp or asp.net than write my own templating system?

What I am wondering is whether/how it would be possible to use asp (maybe asp.net mvc?) to return an HTML string – I wouldn’t be running on a web server, or in response to an HTTP request.

I have not done any asp or asp.net yet- My experience of ASP stretches to ‘Create new project’ in visual studio – but maybe now is a good time to learn!

Thank You!

  • 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-16T17:59:20+00:00Added an answer on May 16, 2026 at 5:59 pm

    The standard ASP.NET view engine–ASP.NET web forms–is very difficult to use in this way as it is pretty tied to the HttpContext and really don’t want to give you a string back but rather stream into the HttpResponse. So you’d generally need IIS stood up to get it to go.

    Xslt (as you are thinking) is a pretty decent option. As is, if things are simple enough, your own template replacement scheme. Now, if things are complex enough, some other options would include:

    • The Spark View Engine
    • The new Asp.NET Razor View Engine.

    Either of those should let you get a string out of a template without too much trouble.

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

Sidebar

Ask A Question

Stats

  • Questions 540k
  • Answers 540k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I don't believe there's anything built into .NET which provides… May 17, 2026 at 2:34 am
  • Editorial Team
    Editorial Team added an answer Sorts the given array in-place. You are aware of std::sort… May 17, 2026 at 2:34 am
  • Editorial Team
    Editorial Team added an answer A trigger is a better solution. As of version 9.0… May 17, 2026 at 2:33 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm wondering if there is anything like Django's HTML templating system, for for CSS..
I'm writing a servlet-based application in which I need to provide a messaging system.
I am using com.ctc.wstx.stax.WstxOutputFactory to generate XML. I am running wstx-asl-3.2.4 I need to
I have a BarEditor.ascx, that can be called from diffent places. <%@ Control Language=C#
I am a systems programmer, so i just know some basic css/html. I like
I need help in locating the conflict in my code, below is my ugly
I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu)
I need to maintain & improve an existing website and I am drowning in
I am building an automation system using Powershell and I would like to define
What I need to do is capture the result of an expression within an

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.