在我的ASP网站上使用HTML网站 [英] Use from HTML website in my ASP website

查看:60
本文介绍了在我的ASP网站上使用HTML网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



i是一名asp程序员。

现在我下载一个免费的模板网站(通过HTML和javascript),这是美丽的。

如何在我的asp网站上使用这个html文件?



谢谢



我尝试过:



i不知道该怎么办



help

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

推荐答案

1。创建一个template.html页面,保持样式和&脚本;只是没有独特的页面内容。



下一步我不确定你的标签是否与帖子完全一致。你声明你是一名asp程序员,但你的帖子被标记为ASP.NET和WebForms。



如果你要去ASP。 NET WebForms路由,你将继续

2.创建一个基于该模板的母版页。

使用创建站点范围的布局母版页(C#)| Microsoft Docs [ ^ ]



如果你正在进行经典ASP 路线,由于教程难以找到,因此会有点困难。您可以从 ASP教程开始[ ^ ]



你需要做的是切断将页面分成几部分并为它们创建单独的文件(例如:PageHeader,PageContent,PageFooter)。

然后您将创建一个新模板 - 我将其命名为template.asp。此页面将包含 include 指令,以便在正确的位置调用这些部分。

创建新页面;只需复制模板并填写包含
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

这篇关于在我的ASP网站上使用HTML网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆