ASP.NET - What is the difference of DataSourceID and DataSource?

前端 未结 3 1460
一向
一向 2021-01-17 10:54

What is the difference of DataSourceID and DataSource from the controls\' attribute? Can I use them interchangeably?

When I try to set DataSource prope

3条回答
  •  我在风中等你
    2021-01-17 11:04

    DataSourceID can be assigned an ID of other data source control of type such as ObjectDataSource XmlDataSource .

    Data Source Controls overview:

    http://msdn.microsoft.com/en-us/library/ms227679.aspx

    There are various other types of data source controls as well or you can develop your own as well.

    Datasource is used when you want to directly give the source to control such as DataSet or a DataTable

提交回复
热议问题