The BasePage type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
AddAjaxStartupScript |
Ads Ajax startup javascripts that are then executed from PreRender.
|
|
AllowAccess |
Used to determine if current uset has access to requested page.
|
|
AutoGenerateMetaKeywordsContent |
Prepares a placeholder for subsequent automatic generation of META keywords tag content.
|
|
CheckForMobileRedirect |
Checks if the request is coming from the mobile client and perform the redirect if needed.
|
|
CheckIsCacheDirty |
Checks if the cache for this page is invalidated.
|
|
CreateChildControls |
Overridden CreateChildControls event
(Overrides Control..::..CreateChildControls()()()().) |
|
CreateHtmlTextWriter |
To avoid infamous: Exception of typeSystem.Web.HttpUnhandledException’ was thrown. Cannot use a leading .. to exit above the top directory. (Overrides Page..::..CreateHtmlTextWriter(TextWriter).)Instead of improving search engine ranking, Url Rewriting can prevent crawlers from indexing any pages. ASP.NET 2.0 uses an adaptive rendering pattern to render html depending on user agents. When a bot visits the site, System.Web.UI.Html32TextWriter gets used to render the html and apparently this throws an exception when System.Web.Util.UrlPath.ReduceVirtualPath() gets called internally by the .NET framework when using Url Rewriting. This method is used to solve the problems associated with this message. However, it appears that XhtmlTextWriter causes other unrelated problems, so the current solution is to use cookieless="UseCookies" in web.config so the cokieless feature that changes the URL is NEVER used. |
|
DisableViewState |
Disables the state of the view.
|
|
Dispose |
Base page dispose.
Dispose of: MonoXDaAdapter.
(Overrides Control..::..Dispose()()()().) |
|
FindMasterWithToolbox |
Finds the master with toolbox.
|
|
FrameworkInitialize |
Initializes the control tree during page generation based on the declarative nature of the page.
(Overrides Page..::..FrameworkInitialize()()()().)Note: Portal culture initialization is performed here. |
|
GenerateMetaTag | ||
GetCurrentLanguageId |
Gets currently selected language id.
|
|
GetPageCacheKey |
Generates cache key for page output caching based on the input params.
|
|
GetPersonalizationPath |
Gets the personalization (query) path from the personalization provider.
|
|
GetRegisteredProviderModules |
Get Registered provider modules.
|
|
GetRevisionPath |
Gets a string that will be used as a unique ID for the revision page.
|
|
HasSecurityException |
Check if provided exception is raised from SecurityException.
|
|
InitializeCulture |
Used to initialize selected culture.
(Overrides Page..::..InitializeCulture()()()().) |
|
InitializeMonoXCulture |
Used to initialize monox selected culture.
|
|
InvalidateCacheKey |
Invalidates cache key for page output caching, usually used with cache dependencies.
|
|
OnError |
Handles all page errors.
(Overrides TemplateControl..::..OnError(EventArgs).) |
|
OnInit |
Page init, security and other initialization tasks are performed here.
(Overrides PageBaseOnInit(EventArgs).) |
|
OnInitWebPartManager |
Triggers the InitWebPartManagerEvent.
|
|
OnLoad |
Page load, sets SEO and Google analytics stuff.
(Overrides Control..::..OnLoad(EventArgs).) |
|
OnPreInit |
Decide which master page to assign to the content pages, Ajax or no-Ajax, based on the settings in user.config.
(Overrides Page..::..OnPreInit(EventArgs).) |
|
OnPreRender |
Overriden OnPreRender event, registers scripts and CSS.
(Overrides Control..::..OnPreRender(EventArgs).) |
|
RegisterProviderModule |
Register provider module.
|
|
Render |
Overriden render event, implements meta keyword generation.
(Overrides Page..::..Render(HtmlTextWriter).) |
|
SetCacheDependencies |
Sets cache dependencies by parsing the CacheDependencyKeys property and adding each of the dependencies to the dependency array.
|
|
SetPageTitle |
Used to set the page title from outside, bypassing the default SEO content generation.
|
|
SetSeoStuff |
Used to set localized page title, and to set meta data (Description and Keywords).
|
|
SetupOutputCache |
Sets up the output cache for this page.
|
|
ValidateCache |
Used to hold the output cache invalidation code, if any. This HAS to be a static method - otherwise it will actually hang on to the original (and in most circumstances useless) page object for the entire duration of the cache entry lifetime, prohibiting the GC from collection it.
|
Extension Methods
Name | Description | |
---|---|---|
ConvertTo(Type) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)()()()() | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)(TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
GetCurrentStackTrace |
Gets current stack trace information.
(Defined by ObjectExtension.) |
|
GetDebugInformation |
Gets the debug information for currently executing code.
(Defined by ObjectExtension.) |
|
GetExecutingMethodName |
Gets the executing method name.
(Defined by ObjectExtension.) |
|
GetPagerTemplate |
Gets pager template.
(Defined by ControlExtension.) |
|
GetPropertyType |
Gets a property type.
(Defined by ObjectExtension.) |
|
GetPropertyValue |
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.) |
|
PropertyExists |
Check if property exists.
(Defined by ObjectExtension.) |
|
SetPropertyValue |
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.) |
Fields
Name | Description | |
---|---|---|
_vsKey |
Session expiration flag.
Note: Session[_vsKey] should contain SessionID |
Properties
Name | Description | |
---|---|---|
_googleAnalyticsScript |
Gets Google Analytics Javascript that is included if account is provided in application settings - user.config file.
|
|
AdminToolbarVisible |
Defines if the admin toolbar is visible. Set to false when custom non-admin personalization infrastructure is to be implemented.
|
|
AjaxifiedPage |
Indicates if a master update panel, as defined in UpdatePanel.master, is used on a page for all users regardless of their roles. This update panel catches all postback events and is used if the page should be fully "ajaxified".
|
|
AppRelativeCurrentExecutionFilePath |
Returns the AppRelativeCurrentExecutionFilePath for a page
When URL routing is used (in ASP.NET 3.5 and above), this property does not have to reflect the real page URL (when the URL is rewritten)
|
|
AutoGenerateMetaKeywords |
Should this page autogenerate META keywords. This is performed initially when a page does not contain any keywords, on subsequent visits the keywords are NOT rewritten.
|
|
BaseSiteFullUrl |
Gets site full url with machine and protocol.
|
|
BaseSiteUrl |
Gets site url without the machine and protocol part.
|
|
CacheDependencyKeys |
Cache dependency keys, separated by semicolons (;).
|
|
CacheDuration |
Cache duration for page output caching.
|
|
ContainsTemplatedParts |
Indicates if this page contains templated Web parts.
|
|
CurrentLanguageId |
Gets current selected language id.
|
|
CurrentPersonalizationScope |
Returns current personalization scope for this page.
|
|
CurrentWebPartManager |
Returns the active Web part manager.
|
|
CustomAccessRoles |
Gets or set custom access roles for current page. Custom access roles are used to explicitly pre-set the access properties on a page, particulary for the admin pages. This way it is not required from a user to set access roles on each of the pages. Access roles that are set from the page administration pane and held in the PageRoles entity collection take precedence over this property, allowing user to redefine the authorization settings and adjust them to his needs.
|
|
DefaultLanguageId |
Gets default language id.
|
|
DependencyInjectionFactory |
Gets or sets the dependency injection factory instance.
|
|
EditRoles |
Array of Guids that identify the roles which are allowed to change page's appearance.
|
|
EditRolesPartially |
Array of Guids that identify the roles which are allowed to partially change page's appearance (for example, permissions for a single part are given). Intended to be used internally.
|
|
EnableGoogleAnalytics |
Gets or sets if google analytics is enabled.
|
|
EnablePageOptimization |
Defines if the view state optimization should be turned on or off.
|
|
ForceAutoGenerateMetaKeywords |
Should this page autogenerate META keywords even if they are already generated before (for pages that change frequently and contain dynamic content).
|
|
HasUnapprovedChanges |
Returns the approval status for this page layout and web parts.
|
|
HasUnapprovedDocuments |
Returns the approval status for this page's documents.
|
|
IsPopup | ||
IsRevisionPage |
Returns true if this page is under revision, false othervise.
|
|
log |
log is used for logging purposes (Errors, Warnings, Messages, etc.)
|
|
MobileRedirectUrl |
Redirect URL for mobile clients.
|
|
MonoXDaAdapter | Obsolete.
Main data access object used for data access tasks, based on the LLBLGen data adapter.
|
|
OriginalException |
Stores the original exception, even if it has been handled by the page and cleared. Can be used to check for the error state of a page.
|
|
OutputCacheLocation |
Output cache location for page output caching.
|
|
PageProperties |
Used for page properties retrieval - title, authorized roles, etc.
|
|
PageStatePersister |
Page state presister.
(Overrides Page..::..PageStatePersister.) |
|
PersonalizeByRawUrl |
Indicates if RawUrl or AbsolutePath is used as a key in the personalization tables.
|
|
RegisteredProviderModules |
Gets the list of the registered provider modules.
Note: Used for Rss, Tell a Friend, etc. web controls to register them as modules that implements Rss, Tell a Friend, etc. functionality. |
|
SeoHeader |
Page header for SEO operations. Handles situations when the page has a master page, as well as for "standalone" pages.
|
|
SlidingExpiration |
Sliding expiration for output page cache.
|
|
ThemePath |
Gets ASP.Net theme path.
|
|
ToolboxPanel |
Reference to the administrative ajax toolbox panel, used when there is a need to refresh it.
|
|
VaryByContentEncoding |
Vary by content encoding string for page output caching.
|
|
VaryByControl |
Vary by control string for page output caching.
|
|
VaryByCustom |
Vary by custom string for page output caching.
|
|
VaryByHeader |
Vary by header string for page output caching.
|
|
VaryByParam |
Vary by param string for page output caching.
|
Events
Name | Description | |
---|---|---|
InitWebPartManager |
Custom event that is triggered on WebPartManager initialization on the main MonoX master page.
Used to avoid the problems with the initial scope that must be set very early, which is impossible to do with Master page or background execution (WebPartHelper).
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=104341&wa=wsignin1.0
|