Re: ObjectDataSource vs manual binding

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It is neaither good or bad. One just needs to understand what it is and use
it appropriately.

xxxDataSource classes and declarative databinding are intended to make
development simplier. Naturally, flexibility suffers as you don't have full
control over databinding.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Leon Mayne" <leon@xxxxxxxxxxxxxx> wrote in message
news:C51B1D61-E43C-4546-A189-F91AAD687A34@xxxxxxxxxxxxxxxx
We have static functions in our data access layer that return generic
lists of our business objects, such as this:

Public Shared Function AllUsers() as Generic.IList(of OurUserObject)
Dim colUsers as New Generic.List(of OurUserObject)
' Populate collection here
Return colUsers
End Function

These methods are used thoughout the code, but in some aspx files we would
like to have a drop down list which retrieves data from these methods
(e.g. to allow the user to pick a user from the database). I've so far
been using an ObjectDataSource control linked to the above method and a
drop down list bound to the ObjectDataSource. This works fine. However,
our senior developer has never used the built in 2005 data objects and
does not like them, and prefers to do manual binding in the Page_Load
event.

Is it better in the above scenario to use to use an ObjectDataSource or to
do the binding yourself? Can anyone cite any articles that give reasons
why using the DataSource objects are a good or bad thing? Bear in mind
this is an enterprise application, so simplicity is not really an issue.


.



Relevant Pages

  • RE: Query regd. Share Point
    ... > I've created a task list for a developer. ... I required to write a separate application how do I use it in WSS. ... The same way than in Sharepoint Portal Server. ... WSS search works by looking in the lists and documents of the current Web ...
    (microsoft.public.sharepoint.portalserver.development)
  • RE: Query regd. Share Point
    ... >> I've created a task list for a developer. ... I required to write a separate application how do I use it in WSS. ... > The same way than in Sharepoint Portal Server. ... > WSS search works by looking in the lists and documents of the current Web ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: GC performance - GC fragility
    ... it the option to permanently let the developer to think about how ... Now remove the object pointer from one of these lists. ... in question is doing by keeping those 10 references in those 10 lists. ... I don't really see that this is a question of GC vs non-GC, ...
    (borland.public.delphi.non-technical)
  • Re: i386 with PAE or AMD64 on PowerEdge with 4G RAM
    ... So you have no first-hand experience with support for 64-bit OSes. ... continually see on other lists. ... developer is responsive and you are reasonably capable and willing to ...
    (freebsd-hackers)
  • Re: [opensuse] Old kde bug.
    ... Does that make you an irresponsible developer? ... I would consider it irresponsible of a developer to waste their valuable ... time looking through 100's of general mailing lists on the off chance ... other distro's bug reports etc that make it less useful) ...
    (SuSE)