S
samvayn
I have Custom Control derived from the DropDownList. It has preloaded
data and meant to be re-used in FromView's and other controls. If I
issue postback by, say, stand-alone button - then this custom
DropDownList retains both - data in a drop-down portion and selected
value. However, if the postback is issued by Update command of the
FormView - then control is empty. The same control outside the
FormView behaves just find on either call.
At this point it is not even bound to anything - simply placed inside
the ItemEdit template and is manually loaded with List Items. I do see
that OnLoad() is called twice when Update command is used - first
time control has Items collection populated (from the ViewState, I
assume) and second time it is empty.
Any help would be highly appreciated.
Sam
data and meant to be re-used in FromView's and other controls. If I
issue postback by, say, stand-alone button - then this custom
DropDownList retains both - data in a drop-down portion and selected
value. However, if the postback is issued by Update command of the
FormView - then control is empty. The same control outside the
FormView behaves just find on either call.
At this point it is not even bound to anything - simply placed inside
the ItemEdit template and is manually loaded with List Items. I do see
that OnLoad() is called twice when Update command is used - first
time control has Items collection populated (from the ViewState, I
assume) and second time it is empty.
Any help would be highly appreciated.
Sam