C
crespo
Hi,everyone,
I have implemented a user control with a button that can show up a modal
dialog. After the modal dialog is closed, a postback event occur and my user
control can successfully receive the return value from the closed modal
dialog. I implemented IPostBackEventHandler for the user control.My problem
is, in the event handler i changed a variable's view state,but when I check
my codes in the user control's overrided Render() function,I found the
variable's view state has been restored to the previous value before I
changed. It sounds very odd,and i am sure i have not changed the variable
anywhere.
Could anyone hele me?
Crespo
I have implemented a user control with a button that can show up a modal
dialog. After the modal dialog is closed, a postback event occur and my user
control can successfully receive the return value from the closed modal
dialog. I implemented IPostBackEventHandler for the user control.My problem
is, in the event handler i changed a variable's view state,but when I check
my codes in the user control's overrided Render() function,I found the
variable's view state has been restored to the previous value before I
changed. It sounds very odd,and i am sure i have not changed the variable
anywhere.
Could anyone hele me?
Crespo