Hi,
there's no pure workaround since controls register their arguments for event
validation at render. You would need to either override the check on control
level (basically override rendering) or disable event validation. If your
code tries to render the control before the entire page is on Render stage,
you get this error, and it is as the error msg states.
If you can move the logic to do the call to RenderControl etc in Page's
overridden Render method, that could serve as a workarounnd, but it depends
on your scenario can it be applied.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Albert" <Al****@discussions.microsoft.comwrote in message
news:EC**********************************@microsof t.com...
I've been getting this error after converting my app from .NET 1.1 to .Net
2.0.
RegisterForEventValidation can only be called during Render()
An error occurs when I call RenderControl(oHtmlTextWriter) method.
Can't use EnableEventValidation="false".
Any help is appreciated.
Thanks