This article introduces the usage of XML. Here I just show the usage of XML and DataSet. In fact, there are many methods and objects for operating XML, such as XmlDataDocument, XmlTextReader, etc. These objects have complete functions and are very practical.
This article takes the XML used by the Adrotator control as an example (novice can first look at the usage of the Adrotator control), and writes an advertisement management program. In this program, the controls used by Flying Knife are mainly DataGrid. It can be said that almost all the functions of DataGrid have been used. While paying attention to XML, you can also learn how to use DataGrid.
Let me first explain some of the methods used in this example:
DataSet mainly uses ReadXml and WriteXml methods. Their functions are known by the name, and the flying knife is not too long-winded. Many methods and objects are used in DataGrid. For example, pagination uses the AllowPaging property, sorting uses the AllowSorting property. In this example, all events in DataGrid are used, such as OnItemCommand, OnEditCommand, OnCancelCommand, OnUpdateCommand, etc.
Everyone should carefully check the handling of these incidents.
Also, when you are looking at the program, think about how many pages it takes if this program uses ASP to write. Haha, it only takes one page to use, and it is used unlimitedly. This is the advantage.
I have made some simple comments on flying knives in the program, and the most important thing is everyone's understanding.
Haha, the people in our studio have been so busy that they are confused recently, so please forgive me. Flying Daggers are not not writing programs these days, but the programs you write need to be published in books (for example, a web page with the same functions as the hunting software can really achieve the same functions as the hunting software, and there is no falsehood) cannot be posted online. This will be scolded :)