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

Standard English is, of course, the version of the language that has resulted from years of hand-wringing about the speed with which it has changed.

Kitty Burns Florey



Navigation





<April 2025>
SMTWTFS
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

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 - 4/4/2025

Totals
Posts - 2656
Comments - 2678
Hits - 2,737,272

Averages
Entries/day - 0.33
Comments/entry - 1.01
Hits/day - 344

Updated every 30 minutes. Last: 6:37 AM 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] |