ObjectDataSource.GetViewNames Method ()
Retrieves a collection of names representing the list of view objects that are associated with the ObjectDataSource object.
Assembly: System.Web (in System.Web.dll)
The ObjectDataSource control supports only one view, named DefaultView, on its underlying data. The method returns a single-element collection of this one view name.
Themethod is intended to be called by data-bound controls, not by page code.
Available since 2.0