Asp – Using ASP.NET usercontrols for templating without having a Website project

ascxasp.nettemplating

Is there a way of using ASP.NET user-controls (.ascx files) to fill my own templating needs within a .NET application, without that application being a Website?

It's actually a class library that will take data in, combine it with a template, then spit it out.

I don't want to write my own templating system from scratch, so I'm looking to re-use ASP.NET functionality for my needs.

I was told that ASP.NET usercontrol rendering is reliant on IIS. Is there some hack or trick to make it work in a .NET class library?

Best Answer

This may be useful to you...may not be exactly what you are looking for..

Building Re-Usable ASP.NET User Control and Page Libraries with VS 2005

Also have a look at

Turning an .ascx User Control into a Redistributable Custom Control