T
tmb
I have a page with many dynamically created HtmlSelect controls which
i create in the Page_Load function. Sometimes upon a post i need to
change the selected items in some of the controls depending on the
settings in other dynamic controls which is completely ok since i
create them myself. However, the problem is that this apparently gets
overridden by the form value that came with the postback. This is not
a setting handled by viewstate so turning off viewstate from the
control doesn't work.
My questions is: How do i override this behaviour? Is there some
function where i should do this or can i somehow manipulate the form
values used (they are read-only normally). Should i delay the creation
of the controls until viewstate and form values have been applied? If
so where do i do that and how?
Any help on this is appreciated.
Regards TMB
i create in the Page_Load function. Sometimes upon a post i need to
change the selected items in some of the controls depending on the
settings in other dynamic controls which is completely ok since i
create them myself. However, the problem is that this apparently gets
overridden by the form value that came with the postback. This is not
a setting handled by viewstate so turning off viewstate from the
control doesn't work.
My questions is: How do i override this behaviour? Is there some
function where i should do this or can i somehow manipulate the form
values used (they are read-only normally). Should i delay the creation
of the controls until viewstate and form values have been applied? If
so where do i do that and how?
Any help on this is appreciated.
Regards TMB