general question

general question

Old forum URL: forums.lhotka.net/forums/t/700.aspx


yh_ink posted on Friday, July 21, 2006

can anyone let me know advantages & disadvantages of using  namevalue list.

thnaks

RockfordLhotka replied on Friday, July 21, 2006

NameValueListBase is just a specialized ReadOnlyListBase object that comes with its own generic child object pre-built for you. It is specifically designed to help you easily populate listbox and combobox controls, and to implement code in your business object to validate key/value data in your validation rules.

So if you have name/value or key/value data in your use case, then NVLB is a good tool. If you don't then it isn't useful.

If you have more complex data (like key/value/value/value/etc.) then you might use NVLB to get ideas on how to implement a more complex ReadOnlyListBase/ReadOnlyBase object pair that reflects your use case better.

yh_ink replied on Friday, July 21, 2006

what about the readonlybase...compared to namevaule list.

Copyright (c) Marimer LLC