Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Data Source question

Status
Not open for further replies.

IT4EVR

Programmer
Feb 15, 2006
462
US
If I use an ObjectDataSource (ODS) to populate a dropdownlist, is that dropdown being data bound every time the page posts back? If so, is there a way to control that?

I know with the "old way" you could bind the dropdown on if(!PostBack) and the dropdown would only be loaded when the page was initially requested.

From a performance perspective, I've read that ODS aren't as efficient as using a DAL sans ODS because ODS use reflection to parse the command parameters. Have people found this accurate?

I've noticed that after I have made changes to the DAL used by the ODS, sometimes it takes a while for the client application to recognized the new parameters. Is this due to reflection?
 
I know with the "old way" you could bind the dropdown on if(!PostBack) and the dropdown would only be loaded when the page was initially requested."


Yes... this is how you do this, accept it is called IsPostBack.

Senior Software Developer
 
What I meant by the "old way" was the 1.1 data access method, where data source controls didn't exist. Since now 1.1 is considered "old hat" at least by Microsoft, that's why I referred to it as such.

I'm more interested in addressing performance issues related to the ODS and the data source controls, such as FormView, DetailsView etc.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top