Professional ASP.NET 1.1 [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Professional ASP.NET 1.1 [Electronic resources] - نسخه متنی

Alex Homeret

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Chapter 9: Working with Relational Data


Overview


last chapter, you saw how easy it is to access both relational and XML data using the .NET data access libraries. In this and the next chapter, we will concentrate on what has traditionally been the major use of data access in ASP – working with relational data – and will see some of the more advanced features that .NET provides. This chapter is mainly concerned with the ways the

DataReader ,

DataSet , and

DataTable objects are used. In the next chapter, you'll look at how to update data sources using .NET.

While simple data access through a

DataReader object will fulfill many of the tasks previously accomplished with ADO

Connection and

Recordset objects in earlier versions of ASP, you will regularly want to build more complex data structures. Plus, the fundamentally disconnected nature of the .NET data access techniques means that you will often decide to use a

DataSet to implement a selection of information as a package that can be easily stored and transported between application tiers – including across the network.

The

DataSet object is at the heart of the .NET disconnected data access strategy, so let's look at all the important aspects of using one in this chapter.

The topics covered in this chapter are:



Accessing complex data with

DataReader and

DataSet objects.



Using stored procedures with

DataReader and

DataSet objects.



Building and editing data in a

DataTable object.



Sorting and filtering data with

DataTable and

DataView objects.



/ 244