ASP and HTML include problems

Source: Internet
Author: User

I have been using ASP + Access for websites for a long time, but yesterday someone told me to use HTML for a website. Because I had to use a lot of header files and bottom files, I didn't want to use templates, I thought of calling a header file, but it is not displayed in any way. I think I have some errors. I checked them carefully. <! -- # Include file = "Top. asp"> that's right. I changed another one. <! -- # Include file = ".. /top. ASP "> I still cannot. It should not be the case. I tested an ASP Applet and displayed it normally. This made me very strange, I wonder if the problem is caused by HTML.

So I think again, this may be the problem. I used another method to call it using IFRAME. <IFRAME name = "content_frame"

Width = 80% Height = 35 src = "top.html"> </iframe> I think this is okay. Fortunately, it can be displayed normally. No problem. I have always been confused about html, this can be a good supplement to the knowledge of HTML, of course there are some methods, as follows:

1. object method <object style = "border: 0px" type = "text/X-scriptlet" Data = "top.html" width = 80% Height = 35> </Object> 2. the behavior method can be used to replace the include files in ASP. If you can directly call the include files in HTML, it is really good. There is also a good alternative method. At least it can save a lot of work.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.