Creating html pages dynamically using stored templates

Hi everybody,

I need to create an asp.net website which will allow the end users to select a prestored template from available templates, edit header, footer and body contents of the template and create a HTML page that will be stored in a physical folder of website with names like test1.html, test2.html, etc.

Can somebody please suggest me how can I achieve this?