Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Databound DropDownLists with DAL+Databound DropDownLists with DAL+
Previous
 
Next
New Post
8/9/2007 12:34 PM
 

How would one deal with lookup values using DAL+? That is, I have a bunch of lookup tables in my database. For example, a States table, a Countries table, an Employee_Role_Lookup table, etc.. I want to use them to populate drop-down lists in various modules. However, I'm not quite sure what the "correct" way to do this would be. Do I create Info and Controller classes for each lookup even though I'm not interested in inserting, updating, or deleting them, only in selecting? Or, do I create one LookupUtility class that just has methods for getting lookup values from various tables? If the latter, does it also go in the app_code folder?

 

 
New Post
8/9/2007 2:08 PM
 

You could do it either way.

I personally prefer to declare an info class for each so the names are easy to remember.

But you could just create a LookupEntryInfo object with properties for Display and Vlaue or something like that so it can be generic, and just alias the tables on the queries to allo CBO to do the population.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/9/2007 10:39 PM
 

Really you can do it either way - as some in the DNN world will say there is no 'right' way to do it - personally I like your lookup utility class idea but thats me

 

as for the app_code folder that really depends - if its not a page/control just a vb file then yes


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Databound DropDownLists with DAL+Databound DropDownLists with DAL+


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out