Hi,
there is dependency such way that Page class checks existence of VIEWSTATE
and EVENTTARGET form elements at the beginnig of request to detect the
postback mode (it returns the request data collection based on this). If
both __VIEWSTATE and __EVENTTARGET hidden form elements are missing
completely, request collection is null.This same collection is the one that
is passed to the LoadPostData method (still LoadPostData should be called in
any case). But I suppose you have removed only the __VIEWSTATE hidden field,
so it can't be the problem.
Can you tell/post some code that demonstrates where do you do the
registration for postback handling?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"John Burke" <no@offence.net> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl...
I am getting a curious problem where LoadPostData is not being called after
registering the control using RegisterRequiresPostback. Other controls not
requiring postback registration are having LoadPostData called. Each
control calling RegisterRequiresPostback does have a uniqueid and exists for
the lifetime of the page, so it's not a mis-referencing problem.
It's worth noting that this was working fine until I killed the Viewstate
and emitted an empty Viewstate hidden field instead. Is it possible that
somewhere in the inner workings of the page class there is some dependency
between RegisterRequiresPostback and the Viewstate?
Any clues?
JB