XML, DataSet, DataGrid combined with a _xml/rss

Source: Internet
Author: User

This article describes the use of XML in ASP.net, where flying knives I just show the use of XML in conjunction with a dataset. In fact, asp.net on the operation of XML and the object is a lot of, such as Xmldatadocument,xmltextreader, these objects are fully functional, but also very practical.



This article takes the XML used by the AdRotator control as an example (the novice can look at the usage of the AdRotator control) and write an ad management program. This program, the control used by flying cutter is mainly a DataGrid, you can say that the DataGrid has been used almost all the functions, we are concerned about the XML at the same time, you can learn how to use the DataGrid.



Let us explain some of the methods used in this example:



Datasets are mainly used in ReadXml and WriteXml methods. Their function to see the name to know, flying knives are not wordy. A lot of methods and objects are used in the DataGrid. For example pagination uses the AllowPaging property, the sort uses the AllowSorting attribute, in this case all events in the DataGrid, such as Onitemcommand,oneditcommand,oncancelcommand, are used. Onupdatecommand and so on.



Look carefully at the handling of these events.



In addition, when you look at the program, think again, if this program uses ASP to write how many pages, oh, with ASP.net only need one page, and unlimited use, this is the advantages of asp.net.



In the program I made some simple comments, the most important thing is everyone's understanding.



Oh, recently our studio people are busy a step confused, so please forgive us. Flying knives These days is not not write procedures, just write procedures need to be published in the book, (for example, and the pursuit of the same function of the Web page, really can achieve the same function as the pursuit, no false) can not be posted online. This will be scolded:)

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.