I tend to initiate the datasource controls in the codebehind without depending on the markup. Mostly because you cannot debug it efficiently.
My question is what is the best event handler or place to do this? I am currently using the ItemDataBound event which I know is increasing redundancy considerably, doing it for each of the paged items. That handler has event args that hooks into the EditForm so that the FindControl works. This is not only relevant for the generic fields of the model object in question but also for lookup controls, (states, countries etc.).
Thanks!
Reid
My question is what is the best event handler or place to do this? I am currently using the ItemDataBound event which I know is increasing redundancy considerably, doing it for each of the paged items. That handler has event args that hooks into the EditForm so that the FindControl works. This is not only relevant for the generic fields of the model object in question but also for lookup controls, (states, countries etc.).
Thanks!
Reid