Guest Book Application For .NET Using Visual Studio
Java Programming For The Absolute Beginner
|
Subjects > Computers > Software > Programming > Web Application Programming For .NET
See also Web Matrix Guestbook Application
Here is a quick tutorial on how to create a Guest Book Application using Visual Studio 2003. This tutorial is very similar to our Web Matrix Guestbook Application tutorial, but instead focuses on the specific steps for developing a Guest Book Application using Visual Studio 2003. If you do not have Visual Studio 2003, or one of the C# learning editions of it, you might want to go over to the Web Matrix Based Tutorial On Building A Guest Book .
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.
Web Matrix has a big advantage: It is free! For an introduction to .NET programming, it is a great choice. There are several good books out that teach how to use it, and talk about some of the extensions it has made to the .NET Framework.
When you get into serious web application development, you will probably want to switch to the Visual Studio. We like the Visual Studio 2003 environment because of the extra help that is available when developing, and various other ease of use features such as IntelliSense?Create when typing. So this tutorial is a little different in it's specifics, but otherwise covers building exactly the same app as in the Web Matrix Guestbook Application . We actually built the version for Visual Studio first, and then went to Web Matrix to see how to do the same program there. This let us study some of the differences and similarities of the two development environments.
You must have a PC running any version of Microsoft Windows since Windows 98. For this tutorial you must have already installed the .NET Framework, and the Visual Studio 2003. We will be using C# (C Sharp) in our example code for this tutorial.
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
Search for books about:
|
Interested in Ellen G. White Topical Index On Colporteur Work?