System.Web.UI.WebControls.SqlDataSource: Method Members

The methods of System.Web.UI.WebControls.SqlDataSource are listed below. For a list of all members, see the SqlDataSource Members list.

See Also: Inherited members from System.Web.UI.DataSourceControl

Public Methods

Delete() : int

Performs a delete operation using the SqlDataSource.DeleteCommand SQL string and any parameters that are in the SqlDataSource.DeleteParameters collection.

Insert() : int

Performs an insert operation using the SqlDataSource.InsertCommand SQL string and any parameters that are in the SqlDataSource.InsertParameters collection.

Select(System.Web.UI.DataSourceSelectArguments) : IEnumerable

Retrieves data from the underlying database by using the SqlDataSource.SelectCommand SQL string and any parameters that are in the SqlDataSource.SelectParameters collection.

Update() : int

Performs an update operation using the SqlDataSource.UpdateCommand SQL string and any parameters that are in the SqlDataSource.UpdateParameters collection.

Protected Methods

CreateDataSourceView(string) : SqlDataSourceView

Creates a data source view object that is associated with the data source control.

GetDbProviderFactory() : System.Data.Common.DbProviderFactory

Returns the System.Data.Common.DbProviderFactory object that is associated with the ADO.NET provider that is identified by the SqlDataSource.ProviderName property.

override
GetView(string) : System.Web.UI.DataSourceView

Gets the named data source view that is associated with the data source control.

override
GetViewNames() : ICollection

Gets a collection of names representing the list of view objects that are associated with the System.Web.UI.WebControls.SqlDataSource control.

override
LoadViewState(object)

Loads the state of the properties in the System.Web.UI.WebControls.SqlDataSource control that need to be persisted.

override
OnInit(EventArgs)

Adds a System.Web.UI.Page.LoadComplete event handler to the System.Web.UI.Page control that contains the System.Web.UI.WebControls.SqlDataSource control.

override
SaveViewState() : object

Saves the current view state of the System.Web.UI.WebControls.SqlDataSource control.

override
TrackViewState()

Tracks view state changes to the System.Web.UI.WebControls.SqlDataSource control so that the changes can be stored in the System.Web.UI.StateBag object for the control.