Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development

  • Print
  • + Share This
This chapter is from the book

Working with Strings

Now that you have set up the database software and installed the database, it's time to start writing the sample application.

To create a test project for this chapter:

  1. Launch Visual Studio .NET. (Start > All Programs > Microsoft Visual Studio .NET > Microsoft Visual Studio .NET).

  2. Select File > New > Project to bring up the New Project dialog.

  3. Under project types on the left side of the New Project window, click the Visual C# projects folder.

  4. Select the ASP.NET Web Application icon and change the name of the application to stringproject (Figure 4.4).

    Figure 4.4Figure 4.4. The sample application for this chapter will be an ASP.NETWeb application.

  5. Visual Studio will create a new project and open WebForm1.aspx.

  6. Change the form's name to login.aspx. You do that by choosing View > Solution Explorer from the top menu bar.

  7. Right-click on WebForm1.aspx and choose properties. In the property grid change the FileName property from WebForm1.aspx to login.aspx (Figure 4.5).

    Figure 4.5Figure 4.5. The property grid gives you an easy way to change the filename for your Web page without having to go through Windows Explorer.

  8. Create a form that looks like the form in Figure 4.6. Obviously this is a lot of work to do by hand, so I suggest you enter the HTML directly into the editor instead. Figure 4.7 (next page) shows the HTML necessary to create the form. To enter the HTML directly click the HTML button under the editor's window. As an alternative you could download the skeleton file for this project (see Tips below).

    Figure 4.6Figure 4.6. The login form lets you enter information that will be used in connecting to the MySQL database. The form has five labels, four textboxes, and one button.

    Figure 4.7Figure 4.7 The Visual Studio form editor enables you to edit the HTML for the page directly. This HTML is the source for the form in Figure 4.6.


  • As with the other projects in this book, building the project isn't necessary for learning the concepts in this chapter.

  • Skeletons for each project can be downloaded from Peachpit's Web site,

  • + Share This
  • 🔖 Save To Your Account