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

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

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

Public Methods

Delete() : int

Performs a delete operation by calling the method that is identified by the ObjectDataSource.DeleteMethod property with any parameters that are in the ObjectDataSource.DeleteParameters collection.

Insert() : int

Performs an insert operation by calling the method that is identified by the ObjectDataSource.InsertMethod property and any parameters in the ObjectDataSource.InsertParameters collection.

Select() : IEnumerable

Retrieves data from the underlying data storage by calling the method that is identified by the ObjectDataSource.SelectMethod property with the parameters in the ObjectDataSource.SelectParameters collection.

Update() : int

Performs an update operation by calling the method that is identified by the ObjectDataSource.UpdateMethod property and any parameters that are in the ObjectDataSource.UpdateParameters collection.

Protected Methods

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

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

override
GetViewNames() : ICollection

Retrieves a collection of names representing the list of view objects that are associated with the System.Web.UI.WebControls.ObjectDataSource object.

override
LoadViewState(object)

Loads the previously saved view state of the System.Web.UI.WebControls.ObjectDataSource control.

override
OnInit(EventArgs)

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

override
SaveViewState() : object

Saves the state of the System.Web.UI.WebControls.ObjectDataSource control.

override
TrackViewState()

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