P
paul.haines
I have a DetailsView with a number of TemplateFields, (plus other
types of fields). One has a button and a click event handler. Another
has DropDownList, which has its selected value initialised when
editing, (from a session variable source).
Unfortunately I've found that to get the click event to fire I need to
re-bind the DetailsView when posting back the page, but this loses the
newly selected option in the DropDownList. If I don't re-bind then I
keep the chosen option, but the button's event never fires.
Any ideas what I can do to solve this? Or have I done something wrong
with my current method?
Thanks for any help,
Paul
types of fields). One has a button and a click event handler. Another
has DropDownList, which has its selected value initialised when
editing, (from a session variable source).
Unfortunately I've found that to get the click event to fire I need to
re-bind the DetailsView when posting back the page, but this loses the
newly selected option in the DropDownList. If I don't re-bind then I
keep the chosen option, but the button's event never fires.
Any ideas what I can do to solve this? Or have I done something wrong
with my current method?
Thanks for any help,
Paul