Click here to Skip to main content
14,038,575 members
Rate this:
Please Sign up or sign in to vote.

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?


What I have tried:

i don't know what should i do

Updated 24-Nov-18 5:22am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190425.1 | Last Updated 24 Nov 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100