Sorry for my delay now, XIII!
First what I did is replace your connectionstring with mine that points to Northwind SQL db.
Second, there was a slight error, just wanted to let you know to update it in original code: Add / at the end of tag of LB2 in u.c.
Rest of the code I left intact, but I get this error:
Could not load type 'TestEnvironment.Forums.GridViewTest1259967'
Then I removed TestEnvironment.Forums. part and I got:
Could not load type 'GridViewTest1259967'.
Then I removed the Inherits=... part completely and I the same error happened with u.c. Page directive, so I removed it from the u.c.
Then I got this, in the line 2 of u.c. :
CS1061:
'ASP.gridviewtestuc1259967_ascx' does not contain a definition for
'LB1_Click' and no extension method 'LB1_Click' accepting a first
argument of type 'ASP.gridviewtestuc1259967_ascx' could be found (are
you missing a using directive or an assembly reference?)
So I guessed I did some damage by removing "Inherits" part from both pages. But as I said, it didn't work with it.
What am I doing wrong?
(Please cope with me, remember I'm a old school ASP-er and a newbie in .NET
)