views:

966

answers:

3

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?

A: 

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>
Chris Coneybeer
+2  A: 

This is the event that should be overriden and used.

protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);
}
Juri
A: 

There are a few things that can cause it to not fire

  • Visible property being set to false
  • Response.End()
BlackTigerX