I have a webpage inheriting a masterpage, The webpage has a DropDownList (DDL) in it, with an OnIndexChanged
Event attached to it.
The problem simply is that the event is not firing, even though a callback occurs (and page_load()
events are called)..
I did some searching and read that having the page's viewstate
set to false, would cause a similar issue, and checking the Masterpage (i dont have access to modify it though) i found it set to false, would that be the reason ?
Also is it possible to set the viewstate = true
on the webpage (the inheriting page) ? would it override the original viewstate = false
on the master page?
EDIT :
The DDL is shown (using Ajax) when a button is a clicked , so initially (on Page_load() DDL.visible = false
, but in the button_click()
event i set DDL.visible = true
which also populates a datareader that gets bound to the DDL .