CodeSmith Community
Your Code. Your Way. Faster!

Datasource Controls vs. Codebehind DataBinding

Latest post 05-01-2008 4:21 AM by swin. 1 replies.
  • 05-01-2008 3:17 AM

    • pofox
    • Not Ranked
    • Joined on 04-17-2008
    • Posts 3
    • Points 75

    Datasource Controls vs. Codebehind DataBinding

    Hi all

    just a general question that a colleague and I have been discussing and I was wondering what the general consensus was. Do you prefer using the nettiers generated strongly typed datasource controls for all your select, update and inserting needs or do you manually call the service classes in the codebehind and explicitly databind? My colleagure has a strong preference for the datasource controls and I am leaning that way too but are there compelling reasons for the other method?

     

     

    • Post Points: 35
  • 05-01-2008 4:21 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 922
    • Points 34,710

    Re: Datasource Controls vs. Codebehind DataBinding

     I wouldn't say its a case of one or the other - its what ever fits best for your needs.

    The datasource controls are very easy to wire up and get going and probably suited to 50%-75% of what you might need, but if your requirements are complex it may be easier to use the services thru code behind.

    My current project uses both techniques and additionally we have custom stored procs that return datasets which have had all of the required joins done.  Although its not strictly sticking to the entity model it does make wiring up gridviews (and the like) easier with regards to sorting and showing relating values (and more performant).

    hth

    swin 

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems