<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TopTenEgypt._Default" %>
General syntax:
<%@ [Directive] [Attribute=value] [Attribute=value] %>
Directives are:
- Assembly: To link an assembly to a page or user control.
- Control: User controls, ASCX files.
- Implements: Implement a .NET Framework interface
- Import: Imports a namespace into a page or a user control.
- Master: a Master page
- MasterType: Associate a class name to a page to get a strongly typed references or members of the specified master page.
- OutputCache: To control the output cache of the page or user control.
- Page: used with ASPX files to specify the page attributes.
- PreviousPageType: enable the page to work with post back from another page in the application.
- Reference: To link another page or user control to the current page or user control.
- Register: To associate aliases with namespaces and class names for notation in customer server control syntax.
- AspCompat: To permit the page to be executed on a single-threaded apartment thread [Default=False]
- Async: To specify the page to be processed synchronously or asynchronously
- AsyncTimeout: the amount of time to wait the async task to complete [default=45 Sec]
- Buffer: To enable HTTP response buffering [default=True]
- ClassName: the class that is bound to the page when the page is compiled.
- ClientIDMode: Specify how the page generate the ClientID values for its server controls
- ClientTarget: Specify the taget user agent the control should render content for, Should be tied to an alias in Web.config file in <ClientTarget> Section.
- CodeFile: The Code-behind file
- CompilationMode: ASP.NET should compile the page or not [Auto,never, Always]
- CompilerOptions: Compilation Options of the page.
- CompileWith: the code-behind file used (?)
- ContentType:the content type of the HTTP response as MIME Type.
- Culture: the culture attribute of the page, can be Auto.
- Debug: If True, compile the page with debug symbols in place.
- EnableEventValidation: If true, validate the events in post-back and callback.
- EnableSessionState: To Enable/disable the session state for the page.
- EnableTheming: If True, the page is enabled to use themes.
- EnableViewstate: If True, View state is maintained across the page.
- EnableViewstateMac: If true, page runs a machine-authenticated check on the page view state when the page is posted back.
- ErrorPage: an URL to post in case of all unhandeled page exceptions.
- Langauge
- LCID: Defined the Locale Identifier for web form's page.
- LinePragmas: weather line pragmas are used with the resulting assembly.
- MasterPageFile: Used with content pages to points to the master page file (.master).
- MaintainScrollPositionOnPostback
- MetaDescription (ASP.NET 4.0): Page description for SEO purposes.
- Metakeywords (ASP.NET 4.0)
- ResponseEncoding
- SmartNavigation: like MaintainScrollPositionOnPostback
- Src: Points to the source file of the class used for the code behind of the page being rendered.
- Strict: (VB)If true,Compile page in Strict Mode
- Theme: Applying the specified theme on the page.
- StyleSheetTheme: like Theme, but StyleSheetTheme wont override preexisting style setting in the controls.
- Title
- Trace: If true, enable Trace messages on the page.
- TraceMode: like SortByTime, SortByCategory
- Transaction: Specify weather transacctions are supported on the page. [Default=False].
- UICulture: which UI Culture to use on the page, use Auto to automatic detection of UI culture.
- ValidateRequest: If True, the page inputs are checked against a list of potential dangerous values to protecet your application from attacks like JavaScript attacks.
- ViewStateEncriptionMode: Specify how the view-state are encrypted [Default=Auto]
- WarningLevel: Specify the compiler warning level at which stop compilation of the page.
@PreviousPageType
Used to specify the page from which any cross-page posting originates.
Attributes:
- TypeName: the name of the class from which the post-back will occur.
- VirtualPath: the locati
@OutputCache
Controls the output cahcing polices of ASp.NET page or use control.
Attributes:
- CacheProfile: To central the way of managing an application cache profile, use the CacheProfile detailed in web.config file.
- Duration: the caching time in seconds
- Location: works with ASPX files only, values [None, DownStream, Client, Server, ServerAndClient].
- NoStore: To send No-Store header with the page.
- Shared: Specify weather a user control output can be shared across a multiple pages
- SqlDependecy: To enable the page to use SqlDependency.
- VaryByControl: Semicolon-separated list of strings used to vary the output cache of a user control.
- CaryByCustom: String specifing the custom output cacheing requirement.
- VaryByParm: Semicolon-seperated list of strings used to vary the output cache.
- VaryByHeader: Semicolon-seperated list of HTTP headers used to vary the output cache
No comments:
Post a Comment