asp.net data controls

  • 742 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
742
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
24
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Bind to many data sources Collections Array HashTable ADO.NET DataReader DataSet XML
  • 2. The ADO.NET DataReader to retrieve a read-only, forward-only stream of data from a database. Results arereturned as the query executes, and are stored in the network bufferon the client until you request them using the Read method of theDataReader. Datasets store a copy of data from the databasetables. However, Datasets can not directly retrieve data fromDatabases. DataAdapters are used to link Databases with DataSets. Ifwe see diagrammatically. Databases  Data Providers  DataAdapters  DataSets
  • 3. ConnectionCommandDataReaderDataSetDataAdapterDataView
  • 4. DataAdapter is a part of the ADO.NETData Provider. DataAdapter provides the communicationbetween the Dataset and the Datasource. We can use theDataAdapter in combination with the DataSet Object. That isthese two objects combine to enable both data access and datamanipulation capabilities. A Data View enables you to create differentviews of the data stored in a Data Table, a capability that is oftenused in data-binding applications. Using a DataView, you can exposethe data in a table with different sort orders, and you can filter thedata by row state or based on a filter expression.
  • 5. DataSet DatabaseAuthors Connection Authors DataAdapter Select … from Authors
  • 6. DataSet Database Authors Connection Publishers DataAdapterPublishers Select … from Publishers
  • 7. DataSet Authors DataGrid RepeaterPublishers DataList Data View
  • 8.  Displays data as a table Control over  Alternate item  Header  Footer  Colors, font, borders, etc.  Paging Updateable Item as row
  • 9. List formatNo default outputMore controlMore complexityItem as rowNot updateable
  • 10. Directional renderingGood for columnsItem as cellAlternate itemUpdateable