Top Banner
M.G.KRISHNA KUMAR PRESENTED BY DATA CONTROLS ata controls in ASP.NET
12
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Krish data controls

M.G.KRISHNA KUMAR

PRESENTED BY

DATA CONTROLSData controls in

ASP.NET

Page 2: Krish data controls

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)

Page 3: Krish data controls

DATA CONTROLSADO.NET

Connection

CommandData ReaderDataSetData AdapterData View

Page 4: Krish 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 5: Krish 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: Krish data controls

AuthorsConnection

Database

DataAdapter

DataSet

Select … from Authors

Authors

DATA CONTROLSADO.NET

Page 7: Krish data controls

PublishersConnection

Database

DataAdapter

DataSet

Select … from Publishers

Authors

Publishers

DATA CONTROLSADO.NET

Page 8: Krish data controls

DataSet

Authors

Publishers

Data View

DataGrid

DataList

Repeater

DATA CONTROLSADO.NET

Page 9: Krish 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: Krish data controls

List formatNo default outputMore controlMore complexityItem as rowNot updateable

DATA CONTROLSRepeater

Page 11: Krish data controls

Directional renderingGood for columnsItem as cellAlternate itemUpdateable

DATA CONTROLSData list

Page 12: Krish data controls

THANK YOU