Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / ApplicationFileParser.cs / 1 / 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 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 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
- StringAnimationUsingKeyFrames.cs
- mil_sdk_version.cs
- SmtpSection.cs
- QueryStringHandler.cs
- ExtractorMetadata.cs
- SyndicationPerson.cs
- UpdateDelegates.Generated.cs
- IsolationInterop.cs
- __FastResourceComparer.cs
- WebEventTraceProvider.cs
- SettingsPropertyNotFoundException.cs
- CodeArrayCreateExpression.cs
- JsonEncodingStreamWrapper.cs
- XamlReaderHelper.cs
- DefaultParameterValueAttribute.cs
- StructuralObject.cs
- Base64Decoder.cs
- StatusBarAutomationPeer.cs
- FixedNode.cs
- WorkflowMarkupSerializationManager.cs
- ClientSideProviderDescription.cs
- IdentityHolder.cs
- MasterPageBuildProvider.cs
- OuterGlowBitmapEffect.cs
- SqlCacheDependencyDatabaseCollection.cs
- ListControl.cs
- KeyboardDevice.cs
- ToolStripItemRenderEventArgs.cs
- DataSourceView.cs
- TextParagraph.cs
- DataError.cs
- SurrogateSelector.cs
- StrokeSerializer.cs
- SmiTypedGetterSetter.cs
- ValidationPropertyAttribute.cs
- PageSetupDialog.cs
- FlowLayoutPanelDesigner.cs
- MostlySingletonList.cs
- HttpsChannelFactory.cs
- assemblycache.cs
- OletxVolatileEnlistment.cs
- DataKeyArray.cs
- Utils.cs
- IDispatchConstantAttribute.cs
- DbProviderFactoriesConfigurationHandler.cs
- WindowsUpDown.cs
- DataSourceProvider.cs
- CompositeCollectionView.cs
- MenuCommandService.cs
- XamlSerializerUtil.cs
- ClearTypeHintValidation.cs
- HtmlWindow.cs
- OpCodes.cs
- AnnotationComponentManager.cs
- ImageSourceValueSerializer.cs
- LabelDesigner.cs
- DomainUpDown.cs
- ServiceDescriptionImporter.cs
- AutomationEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- PointAnimationUsingPath.cs
- UpdatableWrapper.cs
- CallbackValidator.cs
- OleDbPermission.cs
- CompModSwitches.cs
- ExtenderProviderService.cs
- Assert.cs
- Compiler.cs
- CapabilitiesAssignment.cs
- messageonlyhwndwrapper.cs
- OpCellTreeNode.cs
- ArraySegment.cs
- BevelBitmapEffect.cs
- TextViewSelectionProcessor.cs
- TableSectionStyle.cs
- SiteMapDataSourceView.cs
- ConsumerConnectionPoint.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MonitoringDescriptionAttribute.cs
- AffineTransform3D.cs
- DeviceSpecificChoiceCollection.cs
- ChtmlFormAdapter.cs
- FieldToken.cs
- DecoderNLS.cs
- CharAnimationUsingKeyFrames.cs
- Button.cs
- PathData.cs
- IImplicitResourceProvider.cs
- LinkAreaEditor.cs
- StrongBox.cs
- Set.cs
- FrameworkContentElementAutomationPeer.cs
- ResourceAttributes.cs
- WebRequestModuleElement.cs
- Vector3DCollectionValueSerializer.cs
- SequentialUshortCollection.cs
- WpfSharedBamlSchemaContext.cs
- RegexParser.cs
- WebBrowsableAttribute.cs
- ListBindingHelper.cs