Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PreRender event is not fired

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?

like image 200
Vasili Sviridov Avatar asked Jul 22 '09 20:07

Vasili Sviridov


2 Answers

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

  • Visible property being set to false
  • Response.End()
like image 141
BlackTigerX Avatar answered Sep 30 '22 19:09

BlackTigerX


This is the event that should be overriden and used.

protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);
}
like image 45
Juri Avatar answered Sep 30 '22 18:09

Juri