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
- DispatcherProcessingDisabled.cs
- DesignerTransaction.cs
- BitVector32.cs
- DesignTimeVisibleAttribute.cs
- InputReportEventArgs.cs
- sitestring.cs
- ValidationResult.cs
- RequestResizeEvent.cs
- DataGridAddNewRow.cs
- __Filters.cs
- HttpBrowserCapabilitiesWrapper.cs
- RectangleGeometry.cs
- DataSetFieldSchema.cs
- PriorityItem.cs
- SqlXml.cs
- HandleExceptionArgs.cs
- Process.cs
- DbgUtil.cs
- ColumnMapProcessor.cs
- ChameleonKey.cs
- ResourceType.cs
- CollectionChangedEventManager.cs
- WorkflowQueuingService.cs
- PointCollection.cs
- LogManagementAsyncResult.cs
- DesignerEventService.cs
- NativeMethods.cs
- StringDictionary.cs
- BrowsableAttribute.cs
- IsolationInterop.cs
- MessageEncodingBindingElement.cs
- DataSourceHelper.cs
- Byte.cs
- SourceFileInfo.cs
- KeyInterop.cs
- DropDownList.cs
- diagnosticsswitches.cs
- AdornerHitTestResult.cs
- WebPartZoneCollection.cs
- RecipientInfo.cs
- DataGridViewMethods.cs
- AspNetHostingPermission.cs
- Section.cs
- ProxyWebPart.cs
- DefaultValueTypeConverter.cs
- ELinqQueryState.cs
- AccessDataSourceWizardForm.cs
- HttpContextServiceHost.cs
- MultiAsyncResult.cs
- EventPrivateKey.cs
- RuleInfoComparer.cs
- MetadataItemSerializer.cs
- XPathException.cs
- InOutArgumentConverter.cs
- Stack.cs
- UriTemplateVariableQueryValue.cs
- TransactionFlowElement.cs
- MailMessage.cs
- TransportListener.cs
- MethodBuilder.cs
- CapacityStreamGeometryContext.cs
- Console.cs
- Roles.cs
- TableLayoutSettingsTypeConverter.cs
- Tracking.cs
- ParamArrayAttribute.cs
- SmtpNetworkElement.cs
- SafeBitVector32.cs
- WebPartConnectionCollection.cs
- GenericUriParser.cs
- RequestNavigateEventArgs.cs
- LocalFileSettingsProvider.cs
- UrlMappingCollection.cs
- NullableLongAverageAggregationOperator.cs
- RSATokenProvider.cs
- ErrorsHelper.cs
- RuleSettings.cs
- SQLBinary.cs
- OdbcParameterCollection.cs
- ImageConverter.cs
- DbUpdateCommandTree.cs
- ListDictionary.cs
- OracleTimeSpan.cs
- StateMachineAction.cs
- AnonymousIdentificationModule.cs
- DocobjHost.cs
- ChameleonKey.cs
- ListBoxAutomationPeer.cs
- COM2PropertyDescriptor.cs
- TrackingMemoryStream.cs
- TextBoxBase.cs
- TemplateFactory.cs
- SymbolEqualComparer.cs
- PreviewPageInfo.cs
- TypeConverterValueSerializer.cs
- GeometryModel3D.cs
- DecodeHelper.cs
- MulticastDelegate.cs
- SystemIPInterfaceStatistics.cs
- PriorityQueue.cs