Asp. NET to create and use Web Components dynamically based on XML (i)
Source: Internet
Author: User
asp.net|web|xml| Create | dynamic ASP. NET to create the use of Web Components dynamically based on XML
A
Author: Shing
Some time ago the author in the development of the need to dynamically create Web Components, this thought is a trivial matter, who knows that easy to do when it is difficult to do. There's really a little problem in there. The following is a combination of my own program to introduce how to create and use the Web Components dynamically, I hope to do a similar job for friends to provide a little help.
First, the process of thinking
The procedure consists of three main parts:
1, the program to determine the number of Web components that need to be created according to the data information in the XML.
2, the dynamic creation of Web Components.
3. Use dynamically created Web Components.
2 and 3 of them are the part that I want to focus on.
The following author on the basis of these three parts of the combined program example (C # as an example) to introduce.
Second, read XML file
Read the XML file in a lot of information are detailed description, and believe that many friends have a good grasp of their technology. But in order to ensure the integrity of the article, I still have to repeat a few words here. A friend who has a deep taste can skip this paragraph without looking.
The XML file to be read in the author's program is as follows:
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.