XML and ASP simple combination implementation HTML template function

xiaoxiao2021-03-06  14

This paper uses XML DSO data binding functions to implement the separation of ASP code and HTML code, thereby implementing the function of fast replacement HTML template. Since I just start contacting XML, there are many don't know much, here is only proposed here. A little idea, if this article has an error-leaking place, please refer to you. The current fast replacement template function is basically after the special label in the Replace Replacement template, which increases many ASP processing times, and the template file is too long. If you load it into the memory, it is also a test for server memory. And a DSO data binding function is provided in XML. You can deliver the identity replacement operation to the client. Since the production requirements of the HTML template is available. So, try to simplify the XML technology content of the HTML template. Simply, this way is just the properties of the two HTML tags of DataSRC and DataFLD. Nustent talk, don't talk, all don't speak. The following examples Everything will be explained. Example 1: Single data display The following is an XML data island generated with ASP. CODER Light Free Pearl http://blog.9cbs.net/oyiboy HTML original code:

< TD colspan = 2> My brief introduction
My Name:
Website Name: Website Address: < / TD> Example 2: Multi-data display It is an XML data island generated with ASP. Light Spirit Free Pearl http://blog.9cbs.net/oyiboy < / WebURL> EStyle's truncation http://blog.9cbs.net/estyle Favorite cabbage http://blog.9cbs.net/qunluo Show HTML Original: <

转载请注明原文地址:https://www.9cbs.com/read-46765.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.037, SQL: 9