Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Microsoft C# Professional Projects - Premier Press.pdf
Скачиваний:
177
Добавлен:
24.05.2014
Размер:
14.65 Mб
Скачать

452 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

FIGURE 19-8 Validating user credentials against a data source

Summary

ASP.NET is a server-side scripting language that allows you to create dynamic Web pages. The Web pages that you create in ASP.NET are known as Web forms. Web forms are processed on the server and can be coded in any .NETcompatible scripting language, such as Visual C# or Visual Basic .NET.

ASP.NET provides a number of server controls and validation controls that can be added to Web forms. Some commonly used server controls are Label,TextBox, Button, DropDownList, ListBox, Calendar, and RadioButtonList. Validation controls in ASP.NET help validate user input in a field before data is processed on the server.

To make applications communicate with the database, you can use the SQL Server .NET data provider. The three primary classes provided by this data

provider are SqlConnection, SqlDataAdapter, and DataSet. The SqlConnection class

is used for creating a connection to the database.The SqlDataAdapter class is used for updating records in the database, and the DataSet class is used to cache the data that is retrieved from the database.

Chapter 20

Designing

the Application