The SqlDataSource Data control enables us to use a Web control to access data from any relational data base that supported by ADO.NET. It uses with other controls that display data, such as GridView, FormView and DetailsView control, to display and manipulate data on an ASP.NET Web Form, using little code or no code. It uses ADO.NET classes to interact with relational data base. It works
· Open the connection with relational data base.
· Execute the SQL statements for table and view or store procedure
· Returns selected data
· Close the connection
|
S.No |
Property |
Description |
|
1. |
ConnectionString |
It is a string. It is containing server name (hostname or IP address), database name, user and password. |
|
2. |
SelectCommand |
This property represents an SQL query or the name of a stored procedure, and is used by the Select method to retrieve data from the underlying database. |

Join the conversation! Your thoughts help the community grow.