K
kiwileiro
Hi, i am using asp.net 2.0 to make a database front end. I would like opinions on which field of a lookup table to store in the main table.
Currently I store the keyfield value from a dropdownlist that is retrieving data from another table, in to my main table.
I have had difficulties when trying to display the data in the itemtemplate of a gridview.
There appears to be no easy way to show the RELATED TABLE information without linking the tables in the query to retrieve it.
Doing this though makes it harder to update the table adapter in Edit or Insert mode. I would rather use the adapters as Visual Studio made them for me.
A helpful person in a forum has suggested that instead of storing the keyfield in the table that I store the actual text value, and that would make it a lot easier as I have just to display the value and not link to it.
I have made many Access and winform databases but this is my first asp.net one.
In an Access or winforms database I would bind the keyfield and save that in to the main table. As asp doesnt have the continuous state connected to the database, I wonder if we design differently too.
What are your thoughts on this? What is a preferred approach to a very common issue?
Currently I store the keyfield value from a dropdownlist that is retrieving data from another table, in to my main table.
I have had difficulties when trying to display the data in the itemtemplate of a gridview.
There appears to be no easy way to show the RELATED TABLE information without linking the tables in the query to retrieve it.
Doing this though makes it harder to update the table adapter in Edit or Insert mode. I would rather use the adapters as Visual Studio made them for me.
A helpful person in a forum has suggested that instead of storing the keyfield in the table that I store the actual text value, and that would make it a lot easier as I have just to display the value and not link to it.
I have made many Access and winform databases but this is my first asp.net one.
In an Access or winforms database I would bind the keyfield and save that in to the main table. As asp doesnt have the continuous state connected to the database, I wonder if we design differently too.
What are your thoughts on this? What is a preferred approach to a very common issue?