So im trying to creae a dynamic data project using asp.net.
my project has 2 tables, FruitTable and SellerTable.
I had it set so the primary key in 'fruit table': name. was the foreign key in 'seller table'
I added a new class which contains the code to link to the new fieldTemplate I added(DropDown)
<prelang="c#">[MetadataType(typeof(UsingDropDownMetadata))]publicpartialclassUsingDropDown{}publicclassUsingDropDownMetadata{//DropDownisnameoffieldtemplates[UIHint("DropDown")]//useinfielddateintracingtablepublicobjectDropDownFromTextBox{get;set;}}
then in the dropDown_Edit.ascx I used the toolbox to get a drop down list and link it to the fruit table.
Now when a user creates a new item, they can select the names of fruit to add.
However I would like to hard code this so I have removed the r/s btn fruit and seller table