Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ReliableSessionBindingElementImporter.cs
- DataObject.cs
- X509SubjectKeyIdentifierClause.cs
- TimeStampChecker.cs
- JsonEncodingStreamWrapper.cs
- BindableTemplateBuilder.cs
- RootBrowserWindowAutomationPeer.cs
- TemplatePropertyEntry.cs
- ObjectDataSourceView.cs
- XmlDocumentSchema.cs
- MessageDescription.cs
- CommunicationObjectManager.cs
- ConfigXmlElement.cs
- NumberFunctions.cs
- MailMessageEventArgs.cs
- Subordinate.cs
- RenderTargetBitmap.cs
- BitmapCodecInfoInternal.cs
- ListViewGroupCollectionEditor.cs
- CallbackTimeoutsElement.cs
- SafeSecurityHelper.cs
- StdValidatorsAndConverters.cs
- StringHandle.cs
- _BufferOffsetSize.cs
- VersionUtil.cs
- Mouse.cs
- ScrollBarRenderer.cs
- ApplicationException.cs
- LinearGradientBrush.cs
- BitmapEffectRenderDataResource.cs
- VirtualizingPanel.cs
- CngAlgorithmGroup.cs
- SqlConnectionString.cs
- DataGridColumnCollection.cs
- XmlArrayItemAttributes.cs
- SymbolDocumentGenerator.cs
- DynamicValueConverter.cs
- DataGridPageChangedEventArgs.cs
- CustomWebEventKey.cs
- MouseActionValueSerializer.cs
- ProcessHostMapPath.cs
- ValueChangedEventManager.cs
- EventTask.cs
- Predicate.cs
- EmptyControlCollection.cs
- BufferedReadStream.cs
- FontStyles.cs
- DynamicVirtualDiscoSearcher.cs
- MetadataImporterQuotas.cs
- DocumentAutomationPeer.cs
- ColorBlend.cs
- SimpleHandlerFactory.cs
- MsmqIntegrationValidationBehavior.cs
- HighContrastHelper.cs
- SocketElement.cs
- CodeGenerator.cs
- TextProperties.cs
- PositiveTimeSpanValidatorAttribute.cs
- ClientBuildManager.cs
- StubHelpers.cs
- RichListBox.cs
- StringCollectionMarkupSerializer.cs
- Visitors.cs
- StyleReferenceConverter.cs
- MetabaseSettingsIis7.cs
- ObjectHandle.cs
- SettingsPropertyValueCollection.cs
- DataKeyArray.cs
- MeasureItemEvent.cs
- HighContrastHelper.cs
- figurelength.cs
- PrintEvent.cs
- SqlServer2KCompatibilityCheck.cs
- ListViewEditEventArgs.cs
- ObjectSpanRewriter.cs
- DoubleConverter.cs
- CubicEase.cs
- HttpWebRequest.cs
- IProvider.cs
- sapiproxy.cs
- Quaternion.cs
- BinHexEncoding.cs
- RotateTransform3D.cs
- BuildProviderCollection.cs
- ResourceAssociationSet.cs
- CaretElement.cs
- Nullable.cs
- Cursor.cs
- OdbcParameterCollection.cs
- BooleanFunctions.cs
- QuaternionConverter.cs
- BasicExpandProvider.cs
- MouseWheelEventArgs.cs
- SimpleWebHandlerParser.cs
- SynchronizationContext.cs
- OneOfScalarConst.cs
- PropertyNames.cs
- LinkLabel.cs
- TCPClient.cs
- Metadata.cs