J
J055
Hi
I have a FormView control within a UserControl. After I DataBind I need to
change the CurrentMode depending on a value from the ObjectDataSource Select
method. When I do this the FormView DataBinds again. Also in the first
DataBound event the controls are null so I have to check for null even
though I know they are there.
I would prefer not to call my select method twice. Also the first databound
event seems pointless.
What is the recommended approach here?
Thanks
Andrew
I have a FormView control within a UserControl. After I DataBind I need to
change the CurrentMode depending on a value from the ObjectDataSource Select
method. When I do this the FormView DataBinds again. Also in the first
DataBound event the controls are null so I have to check for null even
though I know they are there.
I would prefer not to call my select method twice. Also the first databound
event seems pointless.
What is the recommended approach here?
Thanks
Andrew