Chapter 21. ASP.NET 2.0, Web Forms and Web Controls


If any man will draw up his case, and put his name at the foot of the first page, I will give him an immediate reply. Where he compels me to turn over the sheet, he must wait my leisure.

Lord Sandwich

Rule One: Our client is always right

Rule Two: If you think our client is wrong, see Rule One.

Anonymous

A fair question should be followed by a deed in silence.

Dante Alighieri

You will come here and get books that will open your eyes, and your ears, and your curiosity, and turn you inside out or outside in.

Ralph Waldo Emerson

Objectives

In this chapter you will learn:

  • Web application development using Active Server Pages .NET (ASP.NET).

  • To create Web Forms.

  • To create ASP.NET applications consisting of multiple Web Forms.

  • To maintain state information about a user with session tracking and cookies.

  • To use the Web Site Administration Tool to modify Web application configuration settings.

  • To control user access to Web applications using forms authentication and ASP.NET login controls.

  • To use databases in ASP.NET applications.

  • To design a master page and content pages to create a uniform look-and-feel for a Web site.

Outline

21.1 Introduction

21.2 Simple HTTP Transactions

21.3 Multitier Application Architecture

21.4 Creating and Running a Simple Web-Form Example

21.4.1 Examining an ASPX File

21.4.2 Examining a Code-Behind File

21.4.3 Relationship Between an ASPX File and a Code-Behind File

21.4.4 How the Code in an ASP.NET Web Page Executes

21.4.5 Examining the XHTML Generated by an ASP.NET Application

21.4.6 Building an ASP.NET Web Application

21.5 Web Controls

21.5.1 Text and Graphics Controls

21.5.2 AdRotator Control

21.5.3 Validation Controls

21.6 Session Tracking

21.6.1 Cookies

21.6.2 Session Tracking with HttpSessionState

21.7 Case Study: Connecting to a Database in ASP.NET

21.7.1 Building a Web Form That Displays Data from a Database

21.7.2 Modifying the Code-Behind File for the Guestbook Application

21.8 Case Study: Secure Books Database Application

21.8.1 Examining the Completed Secure Books Database Application

21.8.2 Creating the Secure Books Database Application

21.9 Wrap-Up

21.10 Web Resources



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net