C
champ.supernova
I have a repeater, which contains in its <HEADERTEMPLATE> a drop-down
list (set to autopostback).
If the page is a postback, I want to modify the SQL of the repeater's
datasource, DEPENDING ON the value of the drop-down list.
However, I can't evaluate the drop-down list submission at Page_Load,
because the repeater has not yet been databound or rendered, so
effectively the drop-down list doesn't yet exist.
However, if I test the drop-down list value in the Repeater's
OnItemDataBound event, then it's too late to modify the Repeater's
datasource SQL, as it's already databound.
How can I get around this? There must be a way of evaluating something
that exists in the Repeater's HEADERTEMPLATE section, before
databinding the repeater itself...?
list (set to autopostback).
If the page is a postback, I want to modify the SQL of the repeater's
datasource, DEPENDING ON the value of the drop-down list.
However, I can't evaluate the drop-down list submission at Page_Load,
because the repeater has not yet been databound or rendered, so
effectively the drop-down list doesn't yet exist.
However, if I test the drop-down list value in the Repeater's
OnItemDataBound event, then it's too late to modify the Repeater's
datasource SQL, as it's already databound.
How can I get around this? There must be a way of evaluating something
that exists in the Repeater's HEADERTEMPLATE section, before
databinding the repeater itself...?