title: ASP.NET - What is the difference of DataSourceID and DataSource?
body: <p>What is the difference of DataSourceID and DataSource from the controls' attribute? Can I use them interchangeably? </p>
  
  <p>When I try to set <code>DataSource</code> property at the design time, by typing it on the aspx page, I get an exception that says "The 'DataSource' property cannot be set declaratively.". But when I use property window to change the <code>DataSource</code>, it gives no exception.</p>