Use of the designer to bind data and writing code: what are your comments?

Last post 06-30-2009 2:38 AM by Thomas Sun – MSFT. 2 replies.

Sort Posts:

  • Use of the designer to bind data and writing code: what are your comments?

    06-25-2009, 2:44 AM

    I cam from the Woindows Programming back ground and in C# / VB we use semi-Designer to create controls ie. I used Drag and drop option to add controls to the form though we could bound data to control from the designer, I wrote code to bind data to controls. This is the way I used to write apps. When I move to I found many tutor used the designer to bind data to controls…etc. Should we use the designer to to bind data to control or this is a personal preference? cheers

  • Re: Use of the designer to bind data and writing code: what are your comments?

    06-25-2009, 9:51 AM
    Answer
    • Contributor
      2,728 point Contributor
    • binobose
    • Member since 10-23-2007, 8:42 AM
    • India
    • Posts 606

    Its always better to Bind the data in Codebehind rather than in designview.
    This will fix a lot of designing efforts.

    Cheers
    Bino
    www.codepal.co.in

    Please Mark as Answer if you find the post useful.
  • Re: Use of the designer to bind data and writing code: what are your comments?

    06-30-2009, 2:38 AM
    Answer

    Hi,

    Visual Studio provides many controls to bind data without writing any code, this will make asp.net development fast.

    In my opinion, it depends on your requirement. For a little project, I will use designer to bind data this is easy and fast. For large project, especially for team work project, I prefer to write code. For instance, one engineer writes data access code and another writes data present page.

    Besides, using code can let you understand the technology well. You also can work them together. For example, you create data access layer and use ObjectDataSource control to bind data.

    For more information, http://www.asp.net/learn/data-access/

     

    Thanks.

     

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (3 items)