Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- TextLineBreak.cs
- ResourceDictionary.cs
- DataGridViewColumnCollection.cs
- NetworkCredential.cs
- UnSafeCharBuffer.cs
- ObjectDataSourceMethodEventArgs.cs
- WindowsFormsLinkLabel.cs
- oledbmetadatacollectionnames.cs
- ReadOnlyDictionary.cs
- SchemaCollectionCompiler.cs
- ServiceNameElementCollection.cs
- RealizationContext.cs
- Logging.cs
- FixedPageAutomationPeer.cs
- RotationValidation.cs
- AppSettingsExpressionBuilder.cs
- CompareValidator.cs
- PageSetupDialog.cs
- FileRecordSequenceHelper.cs
- IPCCacheManager.cs
- CollectionDataContract.cs
- DynamicQueryableWrapper.cs
- ProfilePropertySettingsCollection.cs
- HwndTarget.cs
- SqlGenericUtil.cs
- BrushConverter.cs
- CLSCompliantAttribute.cs
- CustomAttributeBuilder.cs
- VerificationAttribute.cs
- ColorIndependentAnimationStorage.cs
- XsdBuildProvider.cs
- DocumentOrderComparer.cs
- Size3D.cs
- GeneralTransform3DTo2DTo3D.cs
- LongValidator.cs
- AppLevelCompilationSectionCache.cs
- LinqDataSource.cs
- FixedPosition.cs
- DocumentViewerAutomationPeer.cs
- WebPartVerb.cs
- PixelFormat.cs
- FixedSOMElement.cs
- BevelBitmapEffect.cs
- BaseServiceProvider.cs
- BamlRecordReader.cs
- XmlCollation.cs
- QuaternionRotation3D.cs
- FormsAuthenticationUserCollection.cs
- ToolStripSettings.cs
- MiniCustomAttributeInfo.cs
- RowVisual.cs
- ProgressPage.cs
- AppDomainUnloadedException.cs
- basenumberconverter.cs
- ContainerSelectorActiveEvent.cs
- SerializationUtility.cs
- MobileUserControl.cs
- DataBoundControlHelper.cs
- XmlEventCache.cs
- UnsafeNativeMethods.cs
- SingleStorage.cs
- HyperLinkStyle.cs
- TreeNodeBinding.cs
- RC2CryptoServiceProvider.cs
- XmlParser.cs
- XmlSchemaChoice.cs
- PerformanceCounterPermissionAttribute.cs
- ListView.cs
- QueryContinueDragEventArgs.cs
- ContextQuery.cs
- LZCodec.cs
- CountdownEvent.cs
- CheckBoxPopupAdapter.cs
- ObjectList.cs
- TableLayoutStyleCollection.cs
- AnnotationResourceChangedEventArgs.cs
- PreApplicationStartMethodAttribute.cs
- ZipArchive.cs
- StrokeNodeOperations2.cs
- SHA256Managed.cs
- SEHException.cs
- StringBuilder.cs
- AuthenticationModuleElementCollection.cs
- SqlStream.cs
- Regex.cs
- BaseParser.cs
- AuthenticateEventArgs.cs
- StyleConverter.cs
- HandlerFactoryWrapper.cs
- TextServicesProperty.cs
- RecordManager.cs
- WebPartEditVerb.cs
- PrivilegeNotHeldException.cs
- MouseEvent.cs
- ManipulationDelta.cs
- CompositeCollectionView.cs
- XamlPointCollectionSerializer.cs
- QueryableDataSourceHelper.cs
- PointCollection.cs
- ColorConverter.cs