Edit

Share via


PageParserFilter.NumberOfControlsAllowed Property

Definition

Gets the maximum number of controls that a parser filter can parse for a single page.

C#
public virtual int NumberOfControlsAllowed { get; }

Property Value

The maximum number of controls a parser filter can parse for a page. The default value is 0, which indicates that no controls are parsed.

Remarks

The ASP.NET page parser keeps track of the controls it parses, and if the number exceeds the limit set by a PageParserFilter instance, it throws an HttpException exception.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1