Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ApplicationFileParser.cs / 1503810 / ApplicationFileParser.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* Implements the ASP.NET template parser
*
* Copyright (c) 1998 Microsoft Corporation
*/
namespace System.Web.UI {
using System;
using System.Collections;
using System.IO;
using System.Web.Util;
using System.Web.Compilation;
using Debug=System.Web.Util.Debug;
/*
* Parser for global.asax files
*/
internal sealed class ApplicationFileParser : TemplateParser {
internal ApplicationFileParser() {}
internal override Type DefaultBaseType { get { return PageParser.DefaultApplicationBaseType ?? typeof(System.Web.HttpApplication); } }
internal override bool FApplicationFile { get { return true; } }
internal const string defaultDirectiveName = "application";
internal override string DefaultDirectiveName {
get { return defaultDirectiveName; }
}
internal override void CheckObjectTagScope(ref ObjectTagScope scope) {
// Map the default scope to AppInstance
if (scope == ObjectTagScope.Default)
scope = ObjectTagScope.AppInstance;
// Check for invalid scopes
if (scope == ObjectTagScope.Page) {
throw new HttpException(
SR.GetString(SR.Page_scope_in_global_asax));
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AttachInfo.cs
- CmsInterop.cs
- XamlInterfaces.cs
- ExpressionHelper.cs
- SecurityTokenProvider.cs
- EnterpriseServicesHelper.cs
- DisplayMemberTemplateSelector.cs
- FileUpload.cs
- mda.cs
- StackOverflowException.cs
- MissingSatelliteAssemblyException.cs
- VolatileEnlistmentMultiplexing.cs
- RuntimeConfigurationRecord.cs
- DataGridViewLinkCell.cs
- EDesignUtil.cs
- CaseInsensitiveComparer.cs
- CellParagraph.cs
- IisTraceWebEventProvider.cs
- LoadRetryHandler.cs
- Context.cs
- ValidationResult.cs
- TcpChannelHelper.cs
- ListViewInsertedEventArgs.cs
- AssemblyInfo.cs
- IdleTimeoutMonitor.cs
- RelationalExpressions.cs
- EDesignUtil.cs
- SqlPersistenceProviderFactory.cs
- SupportingTokenAuthenticatorSpecification.cs
- PersianCalendar.cs
- PackageFilter.cs
- Marshal.cs
- ToolStripPanelSelectionBehavior.cs
- GridViewCancelEditEventArgs.cs
- _ShellExpression.cs
- ArraySubsetEnumerator.cs
- _FixedSizeReader.cs
- EventSetter.cs
- WindowsListView.cs
- Int64.cs
- TaskExceptionHolder.cs
- ReturnValue.cs
- MetadataUtilsSmi.cs
- UTF7Encoding.cs
- COM2ColorConverter.cs
- DefinitionBase.cs
- ColumnCollection.cs
- FormViewDeleteEventArgs.cs
- OleDbFactory.cs
- PermissionToken.cs
- XmlElementAttribute.cs
- ThemeableAttribute.cs
- Accessible.cs
- TemplateInstanceAttribute.cs
- Graph.cs
- DiscoveryCallbackBehavior.cs
- OfTypeExpression.cs
- SchemaDeclBase.cs
- Column.cs
- x509store.cs
- PingOptions.cs
- MenuRendererStandards.cs
- SystemTcpConnection.cs
- Speller.cs
- DesignerLoader.cs
- TypeLibConverter.cs
- DataSetUtil.cs
- InvalidFilterCriteriaException.cs
- EditorZoneBase.cs
- DataKey.cs
- BaseContextMenu.cs
- ElementHostPropertyMap.cs
- AutomationProperties.cs
- Size.cs
- VideoDrawing.cs
- PropertyConverter.cs
- DocumentScope.cs
- Graph.cs
- ComProxy.cs
- CurrentTimeZone.cs
- SystemIPInterfaceProperties.cs
- Single.cs
- IgnoreSectionHandler.cs
- WrappedIUnknown.cs
- NameValueSectionHandler.cs
- FlowStep.cs
- RegularExpressionValidator.cs
- OleDbRowUpdatedEvent.cs
- XmlMapping.cs
- SessionEndingCancelEventArgs.cs
- ISAPIRuntime.cs
- HttpListenerResponse.cs
- MSAAEventDispatcher.cs
- GenericWebPart.cs
- OwnerDrawPropertyBag.cs
- UpDownBase.cs
- Oci.cs
- AuthenticationManager.cs
- linebase.cs
- VersionValidator.cs