i got the other problem solved, but how do you name the primary key at runtime for a dataset? It's just coming out as Constraint1. I want to give it a specific name.
-SelArom
-SelArom
Originally posted by: Mark R
I'm not quite sure what you want.
Are you saying that you want a seperate sub-genre table for each item in the main genres table? That's what it looks like from your code.
Probably the easiest way to do it, is to bind the subcategories datalists at the time each one is created, by handling the ItemDataBound events fired from the main datalist. That's the way I'd do it anyway.
In the .aspx file you no longer need to specify the datasource and datamember properties. These will be specified seperately for each sub-datalist when the page runs.
Then in your code you need to add a handler for the ItemDataBound event