Sep 01, 2010, 7:58 AM
[1.0 Preview] DirectEvents do not always retain viewstate
Unfortunately I can't provide a sample that demonstrates this behavior because the code is very large at this point and spans multiple files. However, what I can say is that in two separate code pages with a direct event, the server-side code has no viewstate and the control values are not available in the DirectEvent postbacks.
In one scenario, I have no problem. I have a page with a user control ascx that is in the aspx of a page and direct event gets called and the serverside control's .Text values are accessible. However, in another case, they are always null. Both are wrapped in formpanel controls
Are there any general guidelines anyone can provide to help debug why viewstate would not be available that I can try?
I have to work around this problem with a DirectMethod but I still do not understand why. Is it possible there have been bug-fixes in the SVN that are not present in the preview that may address issues related to something like this?
In one scenario, I have no problem. I have a page with a user control ascx that is in the aspx of a page and direct event gets called and the serverside control's .Text values are accessible. However, in another case, they are always null. Both are wrapped in formpanel controls
Are there any general guidelines anyone can provide to help debug why viewstate would not be available that I can try?
I have to work around this problem with a DirectMethod but I still do not understand why. Is it possible there have been bug-fixes in the SVN that are not present in the preview that may address issues related to something like this?