Author: Mainship | Posted on: 7/2/2009 8:06:03 AM | Views : 268

I have two tables, one contains information on a new member, and the other contains the names of images that were uploaded when the new member record was created.  I have a gridview (Gridview1) that displays new member records.  The datakeys are ID, and sessionID. ID is the primary key

When a record is selected, a formview is displayed.  The office manager needs to edit the record, checking it over and populating a couple of fields.  The datakeys are also ID and sessionID.  Both the gridview and the formview use the same table.
When the formview is displayed, a second gridview should also be displayed if any photos were uploaded.  It should show all the records in the second table where sessionID = the sessionID of the selected row in the first gridview (or the formview - its the same record).  The office manager needs to rename the files.  The datakeys are sessionID and photoID. The primary key for this second table is Photo ...

Go to the complete details ...