Tuesday, October 21, 2008

Building GuestBook using XML and ASP.NET

Building GuestBook using XML and ASP.NET
Sample code and tutorial on how to build your own simple guest book with the help of XML and no Database backend needed

Introduction

This article will basically guide you on how to create a simple GuestBook for your website with the help of XML. Lots of guestbook that you can found on the internet basically utilise Database to store the backend data. In fact, for guestbook, you actually don't need to store all the data inside the database. You can just use XML file for storing the Data. XML is lightweight and you can format the look and feel easily using XSLT and you can also open it direct with Notepad. You don't have to worry about the connection string especially if you migrate your website to different hosting provider.

Building ASP.NET GuestBook with XML Backend


To Start building GuestBook for your website, lets open Visual Studio 2005 and Create two pages called
GuestBook.aspx, and ShowGuestBook.aspx.

The GuestBook.aspx will be a page where your user can fill in their data and submit to your website and ShowGuestBook.aspx will be a page that display current available guest on your website.
Both pages will be retrieving and saving the data into the XML File. No database needed.

Let's Start code something for GuestBook.aspx


 <TABLE WIDTH="600">

<TR>
<TD>
Your Name
podcast directory
Bloglisting.net - The internets fastest growing blog directory

RSS Feed

Blog Directory & Search engine

Followers

About Me