SqlDataSource Constructors

A component that allows you to bind data-aware controls to a SQL database (in read-only mode) with the specified data connection options.
Name Parameters Description
SqlDataSource(DataConnectionParametersBase) connectionParameters Initializes a new instance of the SqlDataSource class with the specified connection parameters.
SqlDataSource(String) connectionName Initializes a new instance of the SqlDataSource class with the specified connection name.
See Also