Free guestbook HTML by visual basic source code(vbknowledgebase.com)
submitted by
pons_saravanan(219) 2 years, 7 months ago
If the website is designed and developed only in plain HTML, it is nearly impossible to create a Guest Book with just plain HTML in server to track the guests. But now a days it is easier to find an Asp.Net enabled host for cheaper prices. It should be noted that, the server side execution is required for saving a GuestBook. Though the databases are the way to go. To make the article simpler I have used a flat file for GuestBook. As the target of this article is not providing a full working application for GuestBook, I am just writing some code for beginners to learn how to start with.
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim GuestBookContent = txtName.Text & " | " & _
txtEmail.Text & " | " & _
txtComments.Text & " ~ "
My.Computer.FileSystem.WriteAllText(Server.MapPath("~/GuestBook.txt"), GuestBookContent, True)
End Sub
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
End Sub
End Class
|category: ASP.NET
|Views: 11
tags:
ASP.NET another
Everyones tags:
Your Tags: