HTML Guestbook in ASP.Net

File Based Guestbook

Any site developed in plain HTML can be integratated with this code.However it is impossible to create a Guest Book with just plain HTML without any server side technologies. As finding an Asp.Net enabled cheaper host is fairly easy. It should be noted that, the server side execution is necessary  for saving a GuestBook. Though the databases are better option. To make the article simpler I have used a flat file.

For a Complete Source code visit here(HTML Guestbook)

The guest book is designed to be saved into the file system at the web server. Since the flat file is just served s a text storage, we may delimit the data in a standard way. so that later on the data can be presented as required. There are two segments we need to consider for delimiters, one is for the row delimiter another is a column delimiter. so we will use ~ to differentiate each row. and with in the row we can use | to delimit the columns

The saved GuestBook.Txt can be parsed with another one Web Page for loading data in to the screen by using a Split () function
‘~’ To delimit a guest entry
‘|’ To delimit attributes as name email and comments

First split using ‘~’, will get the entire guest book entry for one visitor. Take that entry and parse again using split with |, First element is Name, Second element is e-mail, third element is comments. It can be displayed easily with some HTML formatting

Pon Saravanan

Article Source:http://www.articlesbase.com/programming-articles/html-guestbook-in-aspnet-1424003.html

Related Posts

        

If you're looking to become an expert blogger in record time AND are serious about earning big money with blogging, I highly recommend you check out my honest blogging product reviews... I've checked out all the top blogging products on the Internet and these are the ones that I think will benefit you most: Read more Here!

Leave a Reply