newbie: gridview problem, please help me!

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Please help me!!! 3
Please, help me. 1
Please, help me. 1
Menu issues - please help me 0
Help please 8
Arduino Code Please Help 0
I dont get this. Please help me!! 2
Please help me to solve this JS problem 6

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top