Updating entities with relational keys in ASP.NET MVC 2?

fiziks07

New member
How can I update an entity that has a relationship with another entity using ASP.NET MVC 2?

Basically the senario is something like this....

I have an entity from linq to sql called restaurant. The restaurant has a category that is indexed to another table in the database that stores all of the categories.

I have made the page to create the entity but the category is generated as a textbox so you cant really select a category.

I would like to have a listbox that displays all of the categories so that the user can choose one based on the category name and have the listbox be bound to the categoryid.


Any help is greatly appreciated. 10 points to best answer.
If you need more details, ask. Thank you!
 
Back
Top