ASP. NET 2.0 Unleashed
Authors: Walther S.
Published year: 2006
Pages: 19-21/276
Buy this book on amazon.com >>

Installing the ASP.NET Framework

The easiest way to install the ASP.NET Framework is to install Visual Web Developer Express. Visual Web Developer Express is included on the CD that accompanies this book. (You also can download the latest version from www.ASP.net, which is the official Microsoft ASP.NET website.)

Installing Visual Web Developer Express also installs the following components :

  • Microsoft .NET Framework version 2.0

  • SQL Server Express

Visual Web Developer Express is compatible with the following operating systems:

  • Windows 2000 Service Pack 4

  • Windows XP Service Pack 2

  • Windows Server 2003 Service Pack 1

  • Windows x64 editions

  • Windows Vista

I strongly recommend that you also download the .NET Framework SDK (Software Development Kit). The SDK includes additional documentation, sample code, and tools for building ASP.NET applications. You can download the SDK from the Microsoft MSDN website located at msdn.microsoft.com.

You can install Visual Web Developer Express on a computer that already has Visual Studio .NET 2003 installed. The two development environments can co-exist peacefully.

Furthermore, the same web server can serve both ASP.NET 1.1 pages and ASP.NET 2.0 pages. Each version of the .NET Framework is installed in the following folder:

C:\WINDOWS\Microsoft.NET\Framework


For example, on my computer, I have the following three versions of the .NET Framework installed (version 1.0, version 1.1, and version 2.0):

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727


Each folder includes a command-line tool named aspnet_regiis.exe . You can use this tool to associate a particular virtual directory on your machine with a particular version of the .NET Framework.

For example, executing the following command from a command prompt enables a particular version of ASP.NET for a virtual directory named MyApplication:

aspnet_regiis -s W3SVC/1/ROOT/MyApplication


By executing the aspnet_regiis.exe tool located in the different .NET Framework version folders, you can map a particular virtual directory to any version of the ASP.NET Framework.



Summary

In this chapter, you were introduced to the ASP.NET 2.0 Framework. First, we built a simple ASP.NET page. You learned about the three main elements of an ASP.NET page: directives, code declaration blocks, and page render blocks.

Next, we discussed the .NET Framework. You learned about the 13,000 classes contained in the Framework Class Library and you learned about the features of the Common Language Runtime.

You also were provided with an overview of ASP.NET controls. You learned about the different groups of controls included in the .NET Framework. You also learned how to handle control events and take advantage of View State.

We also discussed ASP.NET pages. You learned how ASP.NET pages are dynamically compiled when they are first requested . We also examined how you can divide a single-file ASP.NET page into a code-behind page. You learned how to debug and trace the execution of an ASP.NET page.

At the end of the chapter we covered installation issues in getting the ASP.NET Framework up and running. You learned how to map different Virtual Directories to different versions of the ASP.NET Framework.



Chapter 2. Using the Standard Controls

In this Chapter

  • Displaying Information

  • Accepting User Input

  • Submitting Form Data

  • Displaying Images

  • Using the Panel Control

  • Using the HyperLink Control

  • Summary

In this chapter, you learn how to use the core controls contained in the ASP.NET 2.0 Framework. These are controls that you'll use in just about any ASP.NET application that you build.

You learn how to display information to users by using the Label and Literal controls. You learn how to accept user input with the TextBox , CheckBox , and RadioButton controls. You also learn how to submit forms with the button controls.

At the end of this chapter, you learn how to group form fields with the Panel control. Finally, you learn how to link from one page to another with the HyperLink control.


ASP. NET 2.0 Unleashed
Authors: Walther S.
Published year: 2006
Pages: 19-21/276
Buy this book on amazon.com >>

Similar books on Amazon