This documentation is archived and is not being maintained.
TemplateControl.ParseControl Method (String, Boolean)
Visual Studio 2010
Parses an input string into a Control object on the ASP.NET Web page or user control.
Assembly: System.Web (in System.Web.dll)
'Declaration Public Function ParseControl ( _ content As String, _ ignoreParserFilter As Boolean _ ) As Control
Parameters
- content
- Type: System.String
A string that contains a user control.
- ignoreParserFilter
- Type: System.Boolean
A value that specifies whether to ignore the parser filter.
The content parameter contains a user control (the contents of an .ascx file). This string cannot contain any code, because the ParseControl method never causes compilation.
The ignoreParserFilter parameter allows the PageParserFilter class to be ignored. The PageParserFilter class is used by the ASP.NET parser to determine whether an item is allowed in the page at parse time.
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: