Using Parameters with the ObjectDataSource Control

You can use parameters when calling a method with the ObjectDataSource control. The ObjectDataSource control includes five parameter collections:

SelectParameters Collection of parameters passed to the method represented by the SelectMethod property.

InsertParameters Collection of parameters passed to the method represented by the InsertMethod property.

UpdateParameters Collection of parameters passed to the method represented by the UpdateMethod property.

DeleteParameters Collection of parameters passed to the method represented by the DeleteParameters property.

FilterParameters Collection of parameters used by the FilterExpression property.

DataBound controls—such as the

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.