Is it possible to call a function after Page_Load event?

asp.net, c#

Solution

Use Page.LoadComplete:

protected void Page_LoadComplete(object sender, EventArgs e)
{
    display();
}

Problem

I have this page say test.aspx.Its codebehind is like the code below. ``` protected void Page_Load(object sender, EventArgs e) { } public void display() { // some block statements } ``` Since the function `display()` is outside the `Page_Load` it is never called. So how do I make this call to this function after `Page_Load`. NOTE: I need this function outside the `Page_Load`.

Original source

Related problems