G
Guest
Greetings
Hopefully, I can be clear and concise on this one, but I'm confused.
I have a page with a ListBox <- ODS <- BusinessObject and a button.
The Parameter Source is 'None'. The Default Value is left blank. Both are
set in the Page_Load (myODS.SelectParameters[0].DefaultValue = 999)
I put Debug statements in the Page_Load, ODS_Load and method of my
BusinessObject.
On the first time through, I get the following order:
Page_Load
ODS_Load
BusinessObject Method fires
Exactly as expected.
However, on the second post of the page (when I press the button) the order
is as follows:
BusinessObject Method fires(with NO PARAMETERS)
Page_Load
ODS_Load
BusinessObject Method fires (this time with Parameters set)
The additional firing of the BO Method is causing lots of problems (not
least of which is the loss of the SelectedItem on the ListBox).
As you can imagine, this took hours to track down.
Other info:
ODS.EnableCaching = False
ListBox.EnableViewState = True
I've played around with my Page_Load for hours. But of course, it doesn't
get hit until AFTER the ODS_Load.
I can code round this issue, but to be honest it just seems plain wrong to
me. Firing my BO method twice like this is something I just don't want.
Any help hugely appreciated.
Regards
M.
MCDBA : MCSD
Hopefully, I can be clear and concise on this one, but I'm confused.
I have a page with a ListBox <- ODS <- BusinessObject and a button.
The Parameter Source is 'None'. The Default Value is left blank. Both are
set in the Page_Load (myODS.SelectParameters[0].DefaultValue = 999)
I put Debug statements in the Page_Load, ODS_Load and method of my
BusinessObject.
On the first time through, I get the following order:
Page_Load
ODS_Load
BusinessObject Method fires
Exactly as expected.
However, on the second post of the page (when I press the button) the order
is as follows:
BusinessObject Method fires(with NO PARAMETERS)
Page_Load
ODS_Load
BusinessObject Method fires (this time with Parameters set)
The additional firing of the BO Method is causing lots of problems (not
least of which is the loss of the SelectedItem on the ListBox).
As you can imagine, this took hours to track down.
Other info:
ODS.EnableCaching = False
ListBox.EnableViewState = True
I've played around with my Page_Load for hours. But of course, it doesn't
get hit until AFTER the ODS_Load.
I can code round this issue, but to be honest it just seems plain wrong to
me. Firing my BO method twice like this is something I just don't want.
Any help hugely appreciated.
Regards
M.
MCDBA : MCSD