Click here to Skip to main content
15,887,256 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hello

i am a asp programmer.
now i download a free template website (by html and javascript) whish is beautiful.
how could i use from this html files in my asp website?

thanks

What I have tried:

i don't know what should i do

help
Posted
Updated 24-Nov-18 5:22am

1 solution

1. Create a template.html page, keeping the styles & scripts; just no unique page content.

The next step I am unsure of based on your tags not quite aligning with your post. You stated that you are an "asp programmer" but you have the post tagged as "ASP.NET" and "WebForms".

If you are going the ASP.NET WebForms route, you would proceed with
2. Create a master page based on that template.
Creating a Site-Wide Layout Using Master Pages (C#) | Microsoft Docs[^]

If you are going the Classic ASP route, it will be a little more difficult as the tutorials will be harder to find. You can start with ASP Tutorial[^]

What you would need to do is to "cut up" the pages into section and create individual files for them (eg: PageHeader, PageContent, PageFooter).
You would then create a new template- I'll call it template.asp. This page would have include directives to call those sections in the correct place.
To create a new page; simply copy over the template and fill in the gaps between the includes
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900