krish data controls

Post on 24-Dec-2014

403 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

m.g.krishnakumar

TRANSCRIPT

M.G.KRISHNA KUMAR

PRESENTED BY

DATA CONTROLSData controls in

ASP.NET

Array HashTable

DataReader

DataSet

DATA CONTROLSBind to many Data Sources

Collections

ADO.NET

XML : Extensible Markup Language is a markup language that defines a set of rules for encoding documents in a format that is both human – readable and machine-readable. It is defined in the XML 1.0 Specification produced by the W3C. (World Wide Web Consortium)

DATA CONTROLSADO.NET

Connection

CommandData ReaderDataSetData AdapterData View

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

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.

AuthorsConnection

Database

DataAdapter

DataSet

Select … from Authors

Authors

DATA CONTROLSADO.NET

PublishersConnection

Database

DataAdapter

DataSet

Select … from Publishers

Authors

Publishers

DATA CONTROLSADO.NET

DataSet

Authors

Publishers

Data View

DataGrid

DataList

Repeater

DATA CONTROLSADO.NET

Displays data as a table Control over

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

Updateable Item as row

DATA CONTROLSData Grid

List formatNo default outputMore controlMore complexityItem as rowNot updateable

DATA CONTROLSRepeater

Directional renderingGood for columnsItem as cellAlternate itemUpdateable

DATA CONTROLSData list

THANK YOU

top related