A Profile:
The guest book is an important part of the website, is the place that the visitor comments, is also the website administrator to understand the website basic situation powerful tool. So the guest book plays an important role in today's website.
But it's not easy to develop a guest book in the past, and developers often have a lot of work to do. And now with the introduction of Microsoft Vs.net, the corresponding technology innovation. In particular, the extensive use of XML in the. NET Framework makes the entire. NET Framework extremely advantageous. Vs.net launched in the same time, but also accompanied by a new language C #. As an important part of Microsoft. NET strategy, C # has exceptional performance. So the ASP.net program in this paper is described in C # language, and the whole program is based on XML. I used XML as a database of programs, mainly because the servers support XML files.
Two Requirements:
(1). Net SDK Beta2 and later versions
(2) Support for ASP.net Web servers
Three Description
The examples in this article are made up of two parts:
(1) guestpost.aspx-Add user information to an XML file
(2) viewguestbook.aspx-first set up a DataSet object, after the establishment, it is easy to display the data. I used a "Repeater" here to display data in a dataset. Also, readers can try to modify the viewing page according to their preferences.