asp.net data controls

12
M.G.KRISHNA KUMAR PRESENTED BY DATA CONTROLS

description

 

Transcript of asp.net data controls

Page 1: asp.net data controls

M.G.KRISHNA KUMAR

PRESENTED BY

DATA CONTROLS

Page 2: asp.net data controls

Bind to many data sourcesCollections

ArrayHashTable

ADO.NETDataReaderDataSet

XML

DATA CONTROLS

Page 3: asp.net data controls

Data reader : The ADO.NET DataReader to retrieve a read-only, forward-only stream of data from a database. Results are returned as the query executes, and are stored in the network buffer on the client until you request them using the Read method of the DataReader.

Data Set : Datasets store a copy of data from the database tables. However, Datasets can not directly retrieve data from Databases. DataAdapters are used to link Databases with DataSets. If we see diagrammatically.

Databases Data Providers DataAdapters DataSets

Page 4: asp.net data controls

DATA CONTROLSADO.NET

ConnectionCommandDataReaderDataSetDataAdapterDataView

Page 5: asp.net data controls

Data Adapter : DataAdapter is a part of the ADO.NET Data Provider. DataAdapter provides the communication between the Dataset and the Datasource. We can use the DataAdapter in combination with the DataSet Object. That is these two objects combine to enable both data access and data manipulation capabilities.

Data view : A Data View enables you to create different views of the data stored in a Data Table, a capability that is often used in data-binding applications. Using a DataView, you can expose the data in a table with different sort orders, and you can filter the data by row state or based on a filter expression.

Page 6: asp.net data controls

AuthorsConnection

Database

DataAdapter

DataSet

Select … from Authors

Authors

DATA CONTROLSADO.NET

Page 7: asp.net data controls

PublishersConnection

Database

DataAdapter

DataSet

Select … from Publishers

Authors

Publishers

DATA CONTROLSADO.NET

Page 8: asp.net data controls

DataSet

Authors

Publishers

Data View

DataGrid

DataList

Repeater

DATA CONTROLSADO.NET

Page 9: asp.net data controls

Displays data as a table Control over

Alternate item Header Footer Colors, font, borders, etc. Paging

Updateable Item as row

DATA CONTROLSData Grid

Page 10: asp.net data controls

List formatNo default outputMore controlMore complexityItem as rowNot updateable

DATA CONTROLSRepeater

Page 11: asp.net data controls

Directional renderingGood for columnsItem as cellAlternate itemUpdateable

DATA CONTROLSData list

Page 12: asp.net data controls

THANK YOU