This is the first in a series of four tutorials that introduces ASP.NET 2.0 and Microsoft's Visual Web Developer Express IDE for building Web applications. The Visual Web Developer Express functionality we discuss is also part of the complete Visual Studio 2005. Both Visual Web Developer Express and Visual Studio 2005 are scheduled to be released in November 2005. This series of tutorials is a small part of Chapter 21, ASP.NET, Web Forms and Web Conrols, from our forthcoming book Visual Basic 2005 How to Program, 3/e. Chapter 21 is part of a four chapter sequence on XML, ADO.NET, ASP.NET and Web Services in which we discuss each of these technologies and demonstrate how to build substantial, data driven Web applications.
Part 1 of this tutorial provides a brief introduction to ASP.NET, Web Forms and Web controls. Part 2 discusses simple HTTP transactions that enable client/server interactions on the Web. Part 3 overviews multitier application architecture. Part 4 presents a simple Web Form example, analyzes its parts, shows how it executes, and discusses how to build and deploy the Web Form. The tutorials in this series are intended for students and professionals who are already familiar with Visual Basic .NET programming.
[Note: This series of tutorials is an excerpt (Sections 21.1-21.4) of Chapter 21, ASP.NET, Web Forms and Web Controls, from our forthcoming textbook Visual Basic 2005 How to Program, 3/e. These tutorials may refer to other chapters or sections of the book that are not included here.
Permission Information: Deitel, Harvey M. and Paul J., Visual Basic 2005 How to Program, ©2005.
Electronically reproduced by permission of Pearson Education, Inc., Upper Saddle River, New Jersey.]
Part 1: Introduction to ASP.NET
In previous chapters, we used Windows Forms and Windows controls to develop Windows applications. In this chapter, we introduce Web application development
with Microsoft's ASP.NET technology. Web-based applications create Web content for Web browser clients. This Web content includes Extensible HyperText Markup Language (XHTML), client-side scripting, images and binary data. Readers not familiar with XHTML should first read Appendix H, Introduction to XHTML: Part 1 and Appendix I, Introduction to XHTML: Part 2 before studying this chapter.
We present several examples that demonstrate Web application development using Web Forms
, Web controls
(also known as ASP.NET server controls
) and Visual Basic programming. Web Form files have the file extension .aspx
and contain the Web page's GUI. Programmers customize Web Forms by adding Web controls, which include labels, text boxes, images, buttons and other GUI components. The Web Form file represents the Web page that is sent to the client browser. From this point onward, we refer to Web Form files as ASPX files
Every ASPX file created in Visual Studio has a corresponding class written in a .NET language, such as Visual Basic. This class includes event handlers, initialization code, utility methods and other supporting code. The Visual Basic file that contains this class is called the code-behind file
and provides the ASPX file's programmatic implementation.
In this chapter, we use Microsoft Visual Web Developer 2005 Express
, an IDE designed specifically for developing ASP.NET Web applications. All of the GUI design and programming presented in this chapter occurs within Visual Web Developer. As you will see, Visual Web Developer and Visual Basic 2005 Express share many common features and visual programming tools that simplify building complex applications, such as those that access a database (presented in Sections 21.7-21.8). The full version of Visual Studio 2005 includes the functionality of Visual Web Developer. Thus, our instructions throughout the chapter for Visual Web Developer also apply to Visual Studio 2005. Note that you must install either Visual Web Developer 2005 Express or a complete version of Visual Studio 2005 to implement the programs in this chapter and Chapter 22, Web Services. Visual Web Developer 2005 Express is included on the book's CD. See the Before You Begin section for installation instructions.
Tutorials in This Series:
ASP.NET Tutorial Part 1: Introduction to ASP.NET (You are here.)
ASP.NET Tutorial Part 2: Simple HTTP Transactions
ASP.NET Tutorial Part 3: Multitier Application Architecture
ASP.NET Tutorial Part 4: Creating and Running a Simple Web Form Example