SQLDataSource vs ObjectDataSource

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Blair

    #1

    SQLDataSource vs ObjectDataSource

    I have written a simple application allowing me to update a table in my
    Database using a GridView, DetailsView and two SQLDataSources.
    Using this method, I wrote no code and my select, insert, update and
    delete code was written for me.

    I would like to use a ObjectDataSourc e to achieve the same results, but
    the only way I see of doing this is by passing in each parameter of my
    DetailsView into a Insert method, then either building the Insert
    statement myself, or creating a DataRow and updating the Database that
    way.

    This is fine for a couple of parameters, but the application will grow
    to excess of 20 parameters very quickly.

    Surely there is a much quicker and easier way (like SQLDataSource) for
    achieving this?

    Any help is much appreciated.

    Regards,

    Steven



    *** Sent via Developersdex http://www.developersdex.com ***
Working...