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
- TdsParserStaticMethods.cs
- FontConverter.cs
- TransactionOptions.cs
- Site.cs
- MultilineStringEditor.cs
- AbandonedMutexException.cs
- Brush.cs
- RawStylusInput.cs
- WsatStrings.cs
- EntityClientCacheEntry.cs
- EncodingConverter.cs
- QueryReaderSettings.cs
- InvalidProgramException.cs
- HandlerFactoryWrapper.cs
- HWStack.cs
- SafeWaitHandle.cs
- TreeNodeCollection.cs
- MailDefinition.cs
- PerformanceCounterPermissionEntryCollection.cs
- DrawingCollection.cs
- XamlTypeMapper.cs
- XmlSchemaSimpleContentRestriction.cs
- FormViewDeletedEventArgs.cs
- PropertyChangeTracker.cs
- ExtentJoinTreeNode.cs
- BitmapEffectDrawing.cs
- OutputChannel.cs
- XmlnsPrefixAttribute.cs
- TimeSpan.cs
- BinaryFormatter.cs
- WindowsImpersonationContext.cs
- HealthMonitoringSectionHelper.cs
- WindowsRichEditRange.cs
- RSAOAEPKeyExchangeFormatter.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- XsdDuration.cs
- PolyLineSegmentFigureLogic.cs
- FocusManager.cs
- CompressStream.cs
- HostProtectionException.cs
- FilterableAttribute.cs
- JsonStringDataContract.cs
- HttpErrorTraceRecord.cs
- XmlEncoding.cs
- DecimalAnimationUsingKeyFrames.cs
- ObjectDataSourceDisposingEventArgs.cs
- EventHandlersStore.cs
- XmlLinkedNode.cs
- TableAutomationPeer.cs
- BlobPersonalizationState.cs
- AmbientValueAttribute.cs
- RelatedImageListAttribute.cs
- XPathNodePointer.cs
- CallInfo.cs
- StylusPointCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- Accessible.cs
- SQLBoolean.cs
- ToolBar.cs
- IDispatchConstantAttribute.cs
- PropertyMetadata.cs
- InitializerFacet.cs
- FullTextLine.cs
- DbParameterHelper.cs
- ClientSession.cs
- IUnknownConstantAttribute.cs
- EventLogPermissionEntry.cs
- FontUnit.cs
- ZipFileInfoCollection.cs
- ErrorFormatterPage.cs
- LineProperties.cs
- ToolStripContentPanel.cs
- Stroke.cs
- EpmSourcePathSegment.cs
- AppDomainAttributes.cs
- XamlDesignerSerializationManager.cs
- NonVisualControlAttribute.cs
- ProfilePropertyMetadata.cs
- DateTimeOffset.cs
- BitmapFrameEncode.cs
- EnumValAlphaComparer.cs
- ConstraintManager.cs
- SqlUserDefinedAggregateAttribute.cs
- TypeSystemProvider.cs
- FieldBuilder.cs
- BooleanExpr.cs
- CollectionViewGroup.cs
- XslTransform.cs
- CharacterBuffer.cs
- ChannelTokenTypeConverter.cs
- CaseInsensitiveHashCodeProvider.cs
- CodeArgumentReferenceExpression.cs
- ActionItem.cs
- DataViewSettingCollection.cs
- ScriptResourceHandler.cs
- hresults.cs
- DrawingGroup.cs
- DeclarativeCatalogPart.cs
- TransformPattern.cs
- DataReceivedEventArgs.cs