J
Jeff
OS: XP pro
IDE VS .NET 2005
ASP.NET 2.0
When running my ASP.NET 2.0 code i get this error message:
"The DataSourceID of 'GridView' must be the ID of a control of type
IDataSource. A control with ID 'SqlDataSource1' could not be found"
I've put a gridview on the asp.net page and as a data source I selected
"Database" and when through the wizard and created a simple sql query which
I tested to be okay before I went out of the wizard.... - I clicked on the
"Test Query"-button and the data was shown as expected.... Now when I run
this page I get the error above....
I didn't set the property DataSourceID on the gridview, the wizards did
this....
I see the SqlDataSource1 control on the form so it exists....
The gridview is placed in a WebPartZone, so the gridview here becomes a
webpart.... Under this gridview I see the SqlDataSource1 as another
webpart.....
What am I doing wrong here?
Please help, I need this gridview to work today....
Jeff
IDE VS .NET 2005
ASP.NET 2.0
When running my ASP.NET 2.0 code i get this error message:
"The DataSourceID of 'GridView' must be the ID of a control of type
IDataSource. A control with ID 'SqlDataSource1' could not be found"
I've put a gridview on the asp.net page and as a data source I selected
"Database" and when through the wizard and created a simple sql query which
I tested to be okay before I went out of the wizard.... - I clicked on the
"Test Query"-button and the data was shown as expected.... Now when I run
this page I get the error above....
I didn't set the property DataSourceID on the gridview, the wizards did
this....
I see the SqlDataSource1 control on the form so it exists....
The gridview is placed in a WebPartZone, so the gridview here becomes a
webpart.... Under this gridview I see the SqlDataSource1 as another
webpart.....
What am I doing wrong here?
Please help, I need this gridview to work today....
Jeff