Web Matrix Guestbook Application
Java Programming For The Absolute Beginner
|
Subjects > Computers > Software > Programming > Web Application Programming For .NET > Web Matrix
See also Guest Book Application For .NET Using Visual Studio
Here is a quick tutorial on how to create a Guest Book Application using Web Matrix.
This tutorial is a little different than the usual highly polished tutorial. We will show you not only how to create the Guest Book Application with .NET for your website, we will also show you some typical errors that can happen along the way. If we have a simple error in our code, we will let you know about it, and give you advice on how you can figure out how to fix this kind of error. Of course we will show you where the error is and how to fix it. This will help you learn how to solve some of these common mistakes in your own applications.
You must have a PC running any version of Microsoft Windows since Windows 98. You download the .NET Framework 1.1 and install it on you machine. Then download the Web Matrix Software and install it on your machine. You will now have everything you need to develop simple apps for the .NET framework.
Code samples will be show in text boxes. You will be able to easily right click the text box, click on "Select All", and then right click and select "Copy".
Here is an example of source code:
We will start with a very simple guest book application. It will allow users to enter their name, a URL, and a single line comment. The comments will be appended to a simple text file. Our guest book application will have two web pages: a page to display the guest book comments, and a page to enter new comments.
This application shows how to use an event handler to handle the submission of a form, how to use StreamReader?Create and StreamWriter?Create to read and write text files, and some very simple string processing using the Split function. We also discuss some very simple object oriented issues in deciding how to structure the code in our program.
Here is a short list of ideas we have for improving the guest book application:
Could not find Programming/BottomAd1?Create
|
Interested in Earth Sciences?