Last post Apr 22, 2011 09:49 PM by codemihir1
Apr 20, 2011 10:31 AM|dotnetdev02|LINK
Here's my problem. I've got a ReportViewer object which I'm populating with data retrieved via two stored procs via two ReportDataSource objects. Initially I'll do a retrieval for the first dataset result, with the following code:
reportdatasource.Name = "datasourceone"
reportdatasource.Value = table results of stored proc retrieval
Everything works just fine.
When I refresh the page and retrieve with different criteria, the code is altered to:
reportdatasource.Name = "datasourcetwo"
When the page is rendered, I get the error
"A data source instance has not been supplied for the data source
If I start from scratch, and choose the datasourcetwo route initially, it works fine for datasourcetwo, but get the analgous error for datasourceone, in other
words vice versa. It gets confused and thinks the previous data source is being used, even though I clear the ReportViewer data source each time through.
Any ideas? Thanks in advance....
Apr 22, 2011 09:49 PM|codemihir1|LINK
see link below:
hope this help.