M
Mark Aurit
I create a simple web page, put on a couple of
<asp:listboxes with
autopost=true. I then write code in the events behind
them, doing some simple stuff like using the values in the
first listbox to effect the values in the second listbox
(with a button to fire off Page_Load, which processes the
selected values in the listboxes). When I step through
them in the debugger I see that the events behind the
listboxes fire when I select values in the listboxes, and
Page_Load doesnt fire until I click on the button -
exactly as I expect.
However, when I take the same listboxes and place them in
a web control (which inherits it a base class), Page_Load
is always called when I select items in the listbox (after
Page_Load processes the event behind listbox is fired, but
the damage is done) - NOT what I want.
I would like to solve this myself, but so far all Ive done
is spent a lot of quality time in the debugger, and
deadlines loom near. Can someone please give me some
ideas on how to solve this, where to start looking?
Thanks much, Mark
<asp:listboxes with
autopost=true. I then write code in the events behind
them, doing some simple stuff like using the values in the
first listbox to effect the values in the second listbox
(with a button to fire off Page_Load, which processes the
selected values in the listboxes). When I step through
them in the debugger I see that the events behind the
listboxes fire when I select values in the listboxes, and
Page_Load doesnt fire until I click on the button -
exactly as I expect.
However, when I take the same listboxes and place them in
a web control (which inherits it a base class), Page_Load
is always called when I select items in the listbox (after
Page_Load processes the event behind listbox is fired, but
the damage is done) - NOT what I want.
I would like to solve this myself, but so far all Ive done
is spent a lot of quality time in the debugger, and
deadlines loom near. Can someone please give me some
ideas on how to solve this, where to start looking?
Thanks much, Mark