• Home
  • Privacy Policy
  • Terms & Conditions
  • Contact
  • Advertise
Videos, Photos, Wallpapers, Free Download, Movies, Songs, Sports , Live TV, Entertainment
 
  • Home
  • Bollywood
  • Hollywood
  • Box Office
  • Beauty
  • Fashion
  • Celebrity
  • Business
    • Social Media
    • Money Online
    • Category
  • Entertainment
    • Bollywood
  • Video
    • Youtube
    • Video
  • Technology
    • Asp.net
    • C#
    • SQL
    • .Net
Showing posts with label SiteMapDataSource. Show all posts
You can bind a DataBound control to a DataSource control. A DataSource control is used to represent a particular type of data.

The ASP.NET 3.5 Framework includes the following six DataSource controls:
  • SqlDataSource : Represents data retrieved from a SQL relational database, including Microsoft SQL Server, Oracle, or DB2.
  • LinqDataSource : Represents a LINQ to SQL query.
  • AccessDataSource : Represents data retrieved from a Microsoft Access database.
  • ObjectDataSource : Represents data retrieved from a business object.
  • XmlDataSource : Represents data retrieved from an XML document.
  • SiteMapDataSource : Represents data retrieved from a Site Map Provider. A Site Map Provider represents the page and folder structure of a website.
The ASP.NET Framework contains two basic types of DataSource controls. The SqlDataSource, AccessDataSource, LinqDataSource, and ObjectDataSource controls all derive from the base DataSourceControl class. These controls can be used to represent tabular data. The XmlDataSource and SiteMapDataSource controls, on the other hand, derive from the base HierarchicalDataSourceControl control. These two controls can be used to represent both tabular and hierarchical data.
A DataBound control is associated with a particular data source control through its DataSourceID property.
ASP.NET 2.0 enables a declarative solution for data binding which requires no code at all for the most common data scenarios, such as:
  1. Selecting and displaying data
  2. Sorting, Paging and Caching Data
  3. Updating, Inserting and Deleting Data
  4. Filtering or Master-Details Using Parameters
ASP.NET 2.0 introduces two types of server controls that participate in this declarative data binding model. These two types of data controls handle the complexity of the stateless Web model for data scenarios, so developers don't need to understand page request lifecycle events just to perform data binding. Another benefit of this control-based model is that it can be easily extended to support additional data access storage providers.

Data Source Controls:

Data source controls have no rendering, but instead represent a particular backend data store, for example a database, business object, XML file, or XML Web Service. Data source controls also enable rich capabilities over data - such as sorting, paging, filtering, updating, deleting, and inserting - that data-bound UI controls can automatically use. ASP.NET includes the following server controls out-of-the-box
  • SqlDataSource : Enables binding to a SQL database represented by an ADO.NET provider, such as Microsoft™ SQL Server, OLEDB, ODBC, or Oracle.
  • ObjectDataSource : Enables binding to a middle-tier object such as a data access layer or business component.
  • AccessDataSource : Enables binding to a Microsoft™ Access (Jet) database.
  • SiteMapDataSource : Enables binding to the hierarchy exposed by an ASP.NET 2.0 site navigation provider.
  • XmlDataSource : Enables binding to an XML file or document.
Data Bound Controls:

Data Bound controls are UI controls that render data as markup to the requesting client device or browser. A data-bound control can auto-bind to data exposed from a data source and will fetch data at the appropriate time in the page request lifecycle. These controls can optionally take advantage of data source capabilities such as sorting, paging, filtering, updating, deleting, and inserting. A data-bound control connects to a data source control through its DataSourceID property. You may be familiar with some of the data-bound controls in ASP.NET v1.x, such as DataGrid, DataList, Repeater, and list controls like DropDownList. ASP.NET 2.0 contains several new data-bound controls as well, such as:
  • GridView : Renders data in a grid format. This control is an evolution of the DataGrid control, and can automatically take advantage of data source capabilities.
  • DetailsView : Renders a single data item in a table of label/value pairs, similar to the form view in Microsoft™ Access. This control can also automatically take advantage of data source capabilities.
  • FormView : Renders a single data item at a time in a form defined by a custom template. Renders a single data item in a table of label/value pairs, similar to the form view in Microsoft™ Access. This control can also automatically take advantage of data source capabilities.
  • TreeView : Renders data in a hierarchical tree view of expandable nodes.
  • Menu : Renders data in a hierarchical dynamic menu
Older Posts Home

ASP.NET Examples

 
2012 24x7 Magazine. All rights reserved.
Designed by 24x7 Magazine