PDA

View Full Version : MVC Pattern Best Practice - Lookup Dropdowns



mathec
15 Jun 2009, 9:34 AM
Can anyone suggest a best practice for the following:

* I'd like to use the MVC pattern with ASP .NET and extjs
* I have one page (view) and the rest of the UI logic is all extjs
* I have a form that contains multiple lookup fields (e.g. dropdownlists with multiple values, tree that user can select values from, etc.)
* What is the best practice for retreiving and udpating the lookup values and selected values? Should I have a controller for each lookup field or return everything in one json response? If I return everything in one json response how would I differentiate between lookup values and selected values?

Thanks!

Chris