Recently i've noticed, that the Page_PreRender event is not being fired. If protected override void OnPreRender
is used - everything is fine. AutoWire is enabled and the same code performs just fine on another machine...
Where should i dig?
Recently i've noticed, that the Page_PreRender event is not being fired. If protected override void OnPreRender
is used - everything is fine. AutoWire is enabled and the same code performs just fine on another machine...
Where should i dig?
I came across this and it appears you can set the AutoEventWireup in Web.Config and Machine.Config. http://support.microsoft.com/kb/324151
So maybe the machine.config on that server has got something going on.
Might be worth looking at.
<configuration>
<system.web>
<pages autoEventWireup="true|false" />
</system.web>
</configuration>
This is the event that should be overriden and used.
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
}
There are a few things that can cause it to not fire