Sponsored Links
ASP.NET 2.0 Tutorials
- Advanced Site Functionality - ASP.NET 2.0
- ASP.NET : Dynamic Image control
- ASP.NET 2.0 Creating Web Wizards
- Displaying Master-Detail Data on Separate Pages in ASP.NET 2.0
- ASP.NET Displaying Master-Detail Data on the Same Page
- ASP.NET DataBound Controls - Details View
- ASP.NET : Using a Grid to Display Detail Information
- ASP.NET 2.0 : Adding Sorting and Paging in GridView
- ASP.NET 2.0 Tutorials : GridView Filtering
- ASP.NET GridView Control
- ASP.NET 2.0 Training : Data Bound Controls
- ASP.NET 2.0 Free Tutorials : SqlDataSource Control
- ASP.NET 2.0 Training : Data Source Object Model
- ASP.NET 2.0 Free Training : Setting Application-Level Caching
- ASP.NET 2.0 Tutorials : Configuring Page-Level Caching
- ASP.NET 2.0 Free Tutorials : Managing Membership and Roles
- ASP.NET 2.0 Free Tutorials : State Management And Caching in ASp.net 2.0
- Forms Authentication in ASP.NET 2.0
- ASP.NET 2.0 Training : ASP.NET Security
- ASP.NET 2.0 Training : Customizing the Session State Mechanism
Tutorials
ASP.NET 2.0ASP.NET 2.0 Free Tutorials : SqlDataSource Control
Table of Contents
ASP.NET 2.0 Free Tutorials : SqlDataSource Control
ASP.NET 2.0 Free Tutorials : SqlDataSource Control - Page 2ASP.NET 2.0 Free Tutorials : SqlDataSource Control
ASP.NET 2.0 Free Tutorials : SqlDataSource Control
In this tutorial you will learn about The Data Source Wizard - SqlDataSource Control, the process of setting up the data source.
The Data Source Wizard
DataSource controls enable programmers to declaratively connect data sources to the user interface. The logic for retrieving the data from the source is inbuilt into the control. For instance when a DropDownList is added to the form the developer is prompted to connect to the DataSource. On Clicking ‘connect to DataSource’, the wizard is started to guide the user through the process of setting up the data source.
The user has to indicate whether an existing data source or a new data source has to be added.

The DataSource that can be added can be a SQL server database or a Microsoft Access Database or a DataSet object or an XML file. In this instance we shall create a new SQLDataSource. In the Choose a DataSource drop down box, select < New DataSource > The next screen of the wizard prompts the user select the type of data source required

The user has to select the database and specify an ID for the DataSource. Click Ok to continue.
A connection string will now have to be specified. The connection can be an existing string or a new string. Since there are no existing connections a new one will be created.

Click on New Connection to create the connection string. A number of options are given to the user. Select Sql Server DataBase file to connect to the SQL Server Express database.

Next Page: ASP.NET 2.0 Free Tutorials : SqlDataSource Control - Page 2
Comments
Jun said:
|
please provide more detail on usage of the sqlDataSource. for example if i am using the SqlDataSource.Select([noarg]) how do i retrieve the recordset. how do i check if an empty set was returned. not for gridview but rather display on a page. |
Sponsored Links
