D
Divya
Hello
I am trying to use a template in my asp.net application so that, I can use the same code for different sites (each site must have a different template - style and content). What would be the best approach? I came across a few articles that talked about using template controls. I am not sure if this is what I need to use. Could someone please help
The approach I was thinking about
1. Use a template.htm file in each of the site's directory (contains the content - for eg: Header and Footer text)
2. Apply different CSS (path of which can be obtained from the config file) for different sites
3. Render all this in the test page's PreRender()......or should I use Render()?
If I use the above steps how do I load the template.htm in my aspx page
Any help with this will be greatly appreciated
Thanks
-Divya
I am trying to use a template in my asp.net application so that, I can use the same code for different sites (each site must have a different template - style and content). What would be the best approach? I came across a few articles that talked about using template controls. I am not sure if this is what I need to use. Could someone please help
The approach I was thinking about
1. Use a template.htm file in each of the site's directory (contains the content - for eg: Header and Footer text)
2. Apply different CSS (path of which can be obtained from the config file) for different sites
3. Render all this in the test page's PreRender()......or should I use Render()?
If I use the above steps how do I load the template.htm in my aspx page
Any help with this will be greatly appreciated
Thanks
-Divya