W
Weston Weems
Ok, I first of all dont know if thats the proper verbage.. lemme explain...
Originally I was taught to handle databinding in a datagrid and such with
Databinder.Eval from the template.
Since then I've heard arguments for that and against.
What I've grown accustomed to is to just throw a generically named lable in
the template, then in onItemDataBound, do a e.Cells.FindControl("label") and
change properties appropriately (some times you have to do it this way)
I've heard the arguemnt against my methods, saying that asp.net allocates
memory etc for potentially hundreds of controls (on pages spitting out tons
of data).
Has anyone seen any speed/scalability benchmarks one way or another? I'd
prefer the findcontrol method and using e.Item.DataItem, to bind... as it
gives me a lot more power.
Thanks for the feedback (/me nudges asp.net team)
Weston Weems
Originally I was taught to handle databinding in a datagrid and such with
Databinder.Eval from the template.
Since then I've heard arguments for that and against.
What I've grown accustomed to is to just throw a generically named lable in
the template, then in onItemDataBound, do a e.Cells.FindControl("label") and
change properties appropriately (some times you have to do it this way)
I've heard the arguemnt against my methods, saying that asp.net allocates
memory etc for potentially hundreds of controls (on pages spitting out tons
of data).
Has anyone seen any speed/scalability benchmarks one way or another? I'd
prefer the findcontrol method and using e.Item.DataItem, to bind... as it
gives me a lot more power.
Thanks for the feedback (/me nudges asp.net team)
Weston Weems