We help IT Professionals succeed at work.

Page_PreRender is not being fired for AutoEventWireUp equals false

I have autoeventwireup=false in my aspx code

and thefoll events
protected void Page_Load(object sender, EventArgs e)
    {
blah blah
}
override protected void OnInit(EventArgs e)
    {
        this.Load += new System.EventHandler(this.Page_Load);
    }
    override protected void OnPreRender(EventArgs e)
    {
        this.PreRender += new System.EventHandler(this.Page_PreRender);
    }      


    protected void Page_PreRender (object sender, EventArgs e)
    {
        blah blah
    }
   
The PreRender logic is never executed
Comment
Watch Question

Commented:
Hey

Here is excellent article about Autoeventwireup. Its pretty clearly written

http://stackoverflow.com/questions/680878/what-does-autoeventwireup-page-property-mean


Page_PreRender is a Page event, This will only fire in case auto event wireup value is set to true.
Else it will not fire

Check
http://support.microsoft.com/kb/814745