|
AspCompat
|
Indicates whether the page is to be executed on a
Single-Threaded Apartment (STA) thread model for backward
compatibility. The default value is
false
.
|
|
AutoEventWireUp
|
Indicates whether ASP.NET should automatically connect
methods
with specific
names
, such as
Page_Init(), Page_Load()
,
and so on, with the page events. The default value is
true
. However, for Web pages created using Visual
Studio .NET, the default value is
false
.
|
|
Buffer
|
Indicates whether the HTTP response buffer is enabled. The
default value is
true
.
|
|
ClassName
|
Specifies the name for the dynamically generated class file for
the ASPX page.
|
|
ClientTarget
|
Represents the target user agent (such as Mozilla/4.0) or alias
(such as IE4) according to which the ASP.NET page should be
rendered.
|
|
CodePage
|
Indicates the culture codepage value for the ASP.NET page.
Supports any valid codepage value. For example, the value
932
specifies a Japanese codepage.
|
|
CompilerOptions
|
Indicates the compiler options and switches to be passed to the
language compiler.
|
|
ContentType
|
Indicates the MIME type for the page response.
|
|
Culture
|
Indicates the culture setting for the page and supports any
valid culture string, such as
en-US, en-GB
, and so
on.
|
|
Debug
|
Indicates whether the compilation should include debug symbols.
The default value is
false
.
|
|
Description
|
Represents the description of the page. The page compilers
ignore this attribute.
|
|
EnableSessionState
|
Indicates whether the session state is enabled
(
true
), read-only (
ReadOnly
), or disabled
(
false
) for the page. The default value is
true
.
|
|
EnableViewState
|
Indicates whether the view state is
maintained
for the page and
its container controls. The default value is
true
.
|
|
EnableViewStateMac
|
Indicates whether the view state should be
verified
against
Machine Authentication Check (MAC) to ensure that the view state is
not tampered with.
|
|
ErrorPage
|
Specifies the error page where the user is redirected whenever
an unhandled exception occurs in the page.
|
|
Explicit
|
Ignored when the
Language
attribute is
C#
.
|
|
Inherits
|
Represents the name of the code-behind class that contains code
for the ASPX page and from which the dynamically generated class
inherits.
|
|
Language
|
Represents any .NET programming language used for inline coding
in the page.
|
|
LCID
|
Defines the 32-bit locale identifier for code in the page.
|
|
ResponseEncoding
|
Defines the response encoding for the page, such as
UTF7Encoding, UTF8Encoding, ASCIIEncoding,
UnicodeEncoding
, and so on.
|
|
Src
|
Represents the source filename of the code-behind class that is
dynamically compiled when the Web page is
requested
. Visual Studio
.NET does not use this attribute because it precompiles the
code-behind class.
|
|
SmartNavigation
|
Indicates whether smart navigation is enabled for the page. The
smart navigation feature
preserves
the scroll position and element
focus whenever the page is refreshed. The default value is
false
.
|
|
Strict
|
Ignored when the
Language
attribute is
C#
.
|
|
Trace
|
Indicates whether page-level tracing is enabled. The default
value is
false
.
|
|
TraceMode
|
Indicates how trace messages are to be displayed when tracing is
enabled. The default value is
SortByTime
, and the
other possible value is
SortByCategory
.
|
|
Transaction
|
Indicates whether transactions are supported on the page. The
default value is
Disabled
, and the other possible
values are
NotSupported, Supported, Required
, and
RequiresNew
.
|
|
UICulture
|
Indicates the culture setting for the user interface of a page.
Supports any valid culture string, such as
en-US,
en-GB
, and so on.
|
|
WarningLevel
|
Specifies the warning level at which page compilation should be
stopped
. The possible values are from
to
4
.
|