Results 1 to 3 of 3

Thread: [RESOLVED] When to fill drop down list values?

  1. #1

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Resolved [RESOLVED] When to fill drop down list values?

    I have a bunch of drop down lists in my web app. a LOT actually. Each of them have different values (luckily stored in a reference table). I have some a strongly typed dataset that i can use to just call a method and fill those drop down lists pretty easily.

    My question is: does it make more sense to create an ObjectDataSource for EACH dropdownlist, and fill it using the appropriate method from my strongly typed data access layer? Or to fill them using the same Methods in my vb code during the Page load event, which keeps me from having ALOT of different objectdatasources?

    Does this even make sense? Which way seems more efficient?

    Thanks!

    In the unlikely event that I answer your question correctly, please Rate my post

    Using Visual Studio 2005 Professional

  2. #2

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    Re: When to fill drop down list values?

    I've pretty much determined that NOT using that many ObjectDataSources is the best route since it prevents some overhead.

    I'm resolving this, but would still like you guy's opinions.
    Thanks!

    In the unlikely event that I answer your question correctly, please Rate my post

    Using Visual Studio 2005 Professional

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] When to fill drop down list values?

    To be honest, not much difference. In a metaphorically tightly bound form, you would probably use those datasources. But I wouldn't. I'd want to keep them loosely coupled instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width