Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- FixedTextBuilder.cs
- EnvironmentPermission.cs
- FormsAuthenticationCredentials.cs
- WeakReferenceList.cs
- LOSFormatter.cs
- ConfigurationManagerHelperFactory.cs
- SQLInt64.cs
- InternalsVisibleToAttribute.cs
- HealthMonitoringSectionHelper.cs
- ViewBox.cs
- BidPrivateBase.cs
- ObjectDataSourceFilteringEventArgs.cs
- NetCodeGroup.cs
- OleDbCommand.cs
- BaseConfigurationRecord.cs
- Clipboard.cs
- CancellableEnumerable.cs
- BuiltInExpr.cs
- ResetableIterator.cs
- WindowsBrush.cs
- FamilyMap.cs
- RelationshipEnd.cs
- DataGridViewRowHeaderCell.cs
- ContainerFilterService.cs
- regiisutil.cs
- DataGridViewButtonColumn.cs
- ScriptResourceAttribute.cs
- SubMenuStyle.cs
- RecordConverter.cs
- SqlDataReader.cs
- StylusPointPropertyId.cs
- Style.cs
- ManagedIStream.cs
- MimeBasePart.cs
- DataGridViewColumnConverter.cs
- EdmComplexTypeAttribute.cs
- TraceSource.cs
- SeekStoryboard.cs
- RoamingStoreFile.cs
- TextServicesHost.cs
- IResourceProvider.cs
- MDIWindowDialog.cs
- DrawListViewColumnHeaderEventArgs.cs
- StoryFragments.cs
- Object.cs
- CaseExpr.cs
- IIS7UserPrincipal.cs
- ToolTip.cs
- MetaColumn.cs
- DPTypeDescriptorContext.cs
- StylusPointPropertyUnit.cs
- PathGradientBrush.cs
- UnauthorizedWebPart.cs
- CommandValueSerializer.cs
- MemberDomainMap.cs
- WsdlBuildProvider.cs
- SelectQueryOperator.cs
- XamlTypeWithExplicitNamespace.cs
- InArgumentConverter.cs
- FacetChecker.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- HatchBrush.cs
- ComEventsHelper.cs
- StatusBarItemAutomationPeer.cs
- MsmqTransportElement.cs
- ScriptingAuthenticationServiceSection.cs
- DbConnectionStringCommon.cs
- MergeExecutor.cs
- RelOps.cs
- XmlReflectionMember.cs
- MessageSmuggler.cs
- StrokeCollectionConverter.cs
- RangeValidator.cs
- SelectionRangeConverter.cs
- RestHandler.cs
- SymLanguageType.cs
- Int32Collection.cs
- MetadataException.cs
- DbMetaDataCollectionNames.cs
- FixedPageAutomationPeer.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ComplexLine.cs
- SystemColors.cs
- WebServiceData.cs
- COM2TypeInfoProcessor.cs
- ContentFileHelper.cs
- WindowsGraphics2.cs
- ComplexPropertyEntry.cs
- SqlFunctionAttribute.cs
- ProtocolsConfigurationHandler.cs
- ToolTipService.cs
- DataGridAutomationPeer.cs
- WeakReferenceKey.cs
- SHA1Managed.cs
- KeyInfo.cs
- StyleCollection.cs
- Journaling.cs
- XmlTextReader.cs
- Int64AnimationBase.cs
- PtsHelper.cs