As an important part of a website, the guestbook is a place for visitors to express their opinions. It is also a powerful tool for website administrators to understand the basic information of the website. Therefore, the message book plays an important role in the current website.
However, it was not easy to develop a message book before, and developers often had a lot of work. Now, with the launch of VS.net by Microsoft, the corresponding technology is being innovated. In particular, XML is widely used in. net Framework, which makes the entire. net architecture have a very good foundation. At the same time as VS.net was launched, a new Language C # came along #. As an important part of Microsoft's. net strategy, C # has excellent performance. Therefore, the asp.net program in this article is described in C # language, and the whole program is based on XML. I used XML as a program database, mainly because the servers support XML files.
Ii. Requirements:
(1). Net SDK Beta2 and later versions
(2) Web servers supporting Asp.net
Iii. Description:
The example in this article consists of two parts:
(1) guestpost. aspx-Add User information to an XML file
(2) viewguestbook. aspx-create a DataSet object first, and then the data is easily displayed. Here I used a "Repeater" to display data in the dataset. Also, you can try to modify the page according to your preferences.