How did the dynamicquerystring parameter solve the problem below. It works but I don't understand why?
table resource contains personal entries and has a primary key attribute "id"
table projects contains a primary key attribute "id" and a foreign key attribute "ResourceID" that is constrained to an id attribute from table resource.
I wanted to create a details view for the resource table that displayed in a gridview all of the projects to which a given resource was assigned.
I used the details.aspx template as a starting point and added linq2sql and gridview controls.
The linq2sql control was a select all from table projects and became the datasource for the gridview.
I registered the gridview with the dynamicdatamanger and changed the databoundfields to dynamicdatafields.
Of course the gridview displayed all entries from table projects and as I didn't have vs2010 I didn't have the dynamicqueryextender. I was about to give up when I playing around added the dynamicquerystring parameter to my linq2sql datasource just for grins.
All of a sudden the gridview automagically started filtering down to only the entries that had a ResourceID that was equal to the ID of the c
View Complete Post