About

I'm Mike Pope. I live in the Seattle area. I've been a technical writer and editor for over 35 years. I'm interested in software, language, music, movies, books, motorcycles, travel, and ... well, lots of stuff.

Read more ...

Blog Search


(Supports AND)

Feed

Subscribe to the RSS feed for this blog.

See this post for info on full versus truncated feeds.

Quote

Science is what we understand well enough to explain to a computer. Art is everything else we do.

Donald Knuth



Navigation





<January 2025>
SMTWTFS
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

Categories

  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  

Contact Me

Email me

Blog Statistics

Dates
First entry - 6/27/2003
Most recent entry - 9/4/2024

Totals
Posts - 2655
Comments - 2677
Hits - 2,722,054

Averages
Entries/day - 0.34
Comments/entry - 1.01
Hits/day - 346

Updated every 30 minutes. Last: 8:54 PM Pacific


  10:40 AM

Someone internally asked about the benefits and disadvantages of using the ObjectDataSource control. Eilon Lipton from our team responded with the following:
As the author of the ObjectDataSource, I might be a bit biased, but here's a start:

Pros
  • Automatic two-way databinding with data bound controls such as the GridView and FormView
  • Automatic binding of method parameters to other pieces of data (ControlParameter, QueryStringParameter, etc.) for Select/Insert/Update/Delete
  • Better separation of UI and code
  • Hooks up easily to VS Data Components
  • Better design time support in data bound controls. For example, you object's schema appears in the GridView's "Edit Columns" dialog.

Cons
  • Slight performance hit. I don't recall what our measurements were, but the hit was definitely under 10% for a Select method that returned static data. Keep in mind that with a "real" data object, the Select method would go to a database or somewhere else fairly slow (as compared to returning static data). As such, the hit in a real scenario is probably quite a bit less.
  • Requires specific patterns for writing business objects. It's fairly flexible, but some scenarios are tricky to work with.
There you go -- straight from the, uh, author's mouth.

[categories]   ,

[1] |