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
- RowUpdatedEventArgs.cs
- BaseHashHelper.cs
- XmlDocument.cs
- StrongNameKeyPair.cs
- MetaModel.cs
- ReaderWriterLock.cs
- Attribute.cs
- ResXResourceWriter.cs
- DataPagerField.cs
- NoPersistScope.cs
- UriParserTemplates.cs
- Int32Rect.cs
- GlyphRunDrawing.cs
- TimeSpanOrInfiniteValidator.cs
- XmlCountingReader.cs
- PictureBox.cs
- StyleCollection.cs
- IndexOutOfRangeException.cs
- ImmComposition.cs
- DesignColumnCollection.cs
- EncodingDataItem.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- DataSourceCache.cs
- SessionStateSection.cs
- RenderingEventArgs.cs
- LineSegment.cs
- ContentFileHelper.cs
- TypefaceMap.cs
- MSAANativeProvider.cs
- Matrix.cs
- DataKey.cs
- UnsafeNativeMethods.cs
- MimeFormatExtensions.cs
- TrackingServices.cs
- WebRequestModulesSection.cs
- GridSplitter.cs
- ConfigurationLockCollection.cs
- RuleDefinitions.cs
- PropertySegmentSerializer.cs
- SerializationInfoEnumerator.cs
- SHA384.cs
- ConsoleTraceListener.cs
- WindowsHyperlink.cs
- ManagementExtension.cs
- TransactionScopeDesigner.cs
- ZipPackage.cs
- IntSecurity.cs
- FileVersion.cs
- ProgressiveCrcCalculatingStream.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- PerformanceCounterPermissionAttribute.cs
- NumberFormatInfo.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- LinkedList.cs
- PropertyOrder.cs
- precedingquery.cs
- EventMappingSettingsCollection.cs
- PropertyMapper.cs
- MouseButton.cs
- DataGridColumnsPage.cs
- StylusPointPropertyInfoDefaults.cs
- Constraint.cs
- SqlDataSourceCache.cs
- ValueUnavailableException.cs
- ResourceManager.cs
- ProxyGenerationError.cs
- StateMachineWorkflowDesigner.cs
- MessageQueueTransaction.cs
- Command.cs
- SchemaDeclBase.cs
- WeakEventTable.cs
- SubqueryRules.cs
- DesignerAttribute.cs
- SortDescriptionCollection.cs
- WebPartDescription.cs
- SqlBooleanMismatchVisitor.cs
- ContentHostHelper.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- RewritingProcessor.cs
- DetailsViewDeletedEventArgs.cs
- CacheVirtualItemsEvent.cs
- SystemIcons.cs
- HandleDictionary.cs
- XmlUtil.cs
- DrawingGroupDrawingContext.cs
- IdentityReference.cs
- AttributeData.cs
- WasAdminWrapper.cs
- OperationFormatUse.cs
- ModuleBuilder.cs
- IFlowDocumentViewer.cs
- XmlKeywords.cs
- CodeRemoveEventStatement.cs
- WindowsAuthenticationModule.cs
- ElementMarkupObject.cs
- PrimitiveCodeDomSerializer.cs
- DataSourceView.cs
- InputBinder.cs
- CodeAttributeArgument.cs
- OciLobLocator.cs