Aspx Page Directive Syntax Error
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. ASP.NET Reference ASP.NET Page Syntax Text Template Directive Syntax Text Template Directive Syntax @ Page @ Page @ Page @ Page @ Control @ http://stackoverflow.com/questions/1941130/syntax-error-caused-by-page-language-c-asp-net Import @ Implements @ Register @ Assembly @ OutputCache @ Reference @ Master @ PreviousPageType @ MasterType @ WebHandler TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Recommended Version This documentation is archived https://msdn.microsoft.com/en-us/library/ydy4x04a(v=vs.100).aspx and is not being maintained. @ Page Visual Studio 2010 Other Versions Visual Studio 2008 .NET Framework 3.5 .NET Framework 3.0 .NET Framework 2.0 .NET Framework 1.1 Defines page-specific (.aspx file) attributes used by the ASP.NET page parser and compiler. Copy <%@ Page attribute="value" [attribute="value"...] %> AttributesAsyncMakes the page an asynchronous handler (that is, it causes the page to use an implementation of IHttpAsyncHandler to process requests). The default is false.AsyncTimeOutDefines the time-out interval (in seconds) used when processing asynchronous tasks. The default is 45 seconds.The value must be an integer.For more information, see the AsyncTimeout property.AspCompatWhen set to true, allows the page to be executed on a single-threaded apartment (STA) thread. This allows the page to call STA components, such as a component developed with Microsoft Visual Basic 6.0. Setting this attribute to true also allows the page to call COM+ version 1.0 components that require access to unmanaged Active Server Pages (ASP) built-in objects. These are accessible thro
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. MSDN Library MSDN Library MSDN Library MSDN Library Design Tools Development Tools and Languages Mobile and Embedded Development .NET Development Office development Online Services Open Specifications patterns & practices Servers and Enterprise Development Speech Technologies Web Development Windows Desktop App Development TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. ASP.NET Master Pages Other Versions Visual Studio 2010 .NET Framework 4 Visual Studio 2008 .NET Framework 3.0 Visual Studio 2005 ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page. This overview contains the following sections: How Master Pages Work Advantages of Master Pages Run-time Behavior of Master Pages Master Page and Content Page Paths Master Pages and Themes Scoping Master Pages Related Topics Reference How Master Pages Work Master pages actually consist of two pieces, the master page itself and one or more content pages. Note You can also nest master pages. For details, see Nested ASP.NET Master Pages. Master Pages A master page is an ASP.NET file with the extension .master (for example, MySite.master) with a predefined layout that can include static text, HTML elements, and server controls. The master page is identified by a special @ Master directive that replaces the @ Page directive that is used for ordinary .aspx pages. The directive looks like the following. C#VB Copy <%@ Master Language="C#" %> The @ Master directive can contain most of the same directives that a @ Control directive can contain. For example, the following master-page directive