This documentation is archived and is not being maintained.

HttpContext.IsPostNotification Property

Gets a value that indicates whether the current ASP.NET event is considered a post event.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public bool IsPostNotification { get; internal set; }

Property Value

Type: System.Boolean
true if the current ASP.NET event is a post event; otherwise, false.

ExceptionCondition
PlatformNotSupportedException

An attempt was made to use this property outside the context of integrated pipeline mode in IIS 7.0 and at least the .NET Framework 3.0.

A post event is an event that is paired with a main event. For example, in ASP.NET you can subscribe to the AuthenticateRequest event. The corresponding post event is the PostAuthenticateRequest event. If you check this property inside the AuthenticateRequest event, it returns false. If you check it from inside the event, it returns true. For more examples of main and post events, see the documentation for the HttpApplication class. The HttpApplication class has several main events that have corresponding post events (events that have the same name prefixed with "Post").

The IsPostNotification property is only supported with the integrated mode in IIS 7.0 and at least the .NET Framework 3.0.

The IsPostNotification property is not intended to be set. Instead, it is provided by IIS 7.0 to the ASP.NET runtime for each notification. Setting the IsPostNotification property will result in a compilation error.

.NET Framework

Supported in: 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: