The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

WebWindow.PagePreRender Event

Occurs after the WebWindow's Web Forms page is loaded, but prior to rendering.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v19.2.dll

Declaration

public event EventHandler PagePreRender
Public Event PagePreRender As EventHandler

Event Data

The PagePreRender event handler receives an argument of the EventArgs type.

Remarks

Handle this event to perform any updates before the Window's page is rendered. The page can be accessed via the Window.Template property.

using System.Web.UI;
using DevExpress.ExpressApp.Web;
//...
public class MyController : WindowController {
    protected override void OnActivated() {
        base.OnActivated();
        ((WebWindow)Window).PagePreRender += PagePreRender;
    }
    protected override void OnDeactivated() {
        ((WebWindow)Window).PagePreRender -= PagePreRender;
        base.OnDeactivated();
    }
    private void PagePreRender(object sender, EventArgs e) {
        // Access the page via the Template property:           
        ControlCollection pageControls = (((WebWindow)sender).Template as Page).Controls;
        // ...
    }
}
See Also