I'm using a dynamic data entities web site. The backing database has a Cabinets table and a PhysicalKeys table with a foeign key pointing to the cabinet. The idea here is we have a list of metal keys and where they are located around the building. A cabinet can contain many metal keys.
So, I go to the http://localhost/website/Cabinets/ListDetails.aspx which very nicely lists all the cabinets. I then select, the "View PhysicalKeys" link for a specific cabinet which brings up the web page http://localhost/website/Keys/ListDetails.aspx?Cabinets.idCabinet=25
The DetailsView at the top of the page shows a PhysicalKey which is not in the filtered list. The GridView below shows only the physical keys inthe cabinet, and if I click on the "Select" link the DetailsView change to display the selected item.
How do I make sure the DetailsView is showing a record from the filtered list when the page loads?