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
- PersistenceContextEnlistment.cs
- DataGrid.cs
- CodeConstructor.cs
- LayoutExceptionEventArgs.cs
- InstanceDescriptor.cs
- X509Certificate.cs
- PackageRelationshipCollection.cs
- FigureParaClient.cs
- TrustVersion.cs
- DataViewSettingCollection.cs
- ExtenderHelpers.cs
- ExpandedWrapper.cs
- SignatureConfirmations.cs
- EncoderFallback.cs
- FilterRepeater.cs
- UnsafeNativeMethods.cs
- DataRecord.cs
- TextEditorContextMenu.cs
- DeclarativeCatalogPart.cs
- ViewBase.cs
- ClientFormsIdentity.cs
- CommandBinding.cs
- ByteFacetDescriptionElement.cs
- TileBrush.cs
- X509RawDataKeyIdentifierClause.cs
- WebResponse.cs
- RegexRunner.cs
- DataSourceCacheDurationConverter.cs
- Point4DConverter.cs
- WindowsButton.cs
- MultiSelectRootGridEntry.cs
- TransactionFilter.cs
- InvalidDataException.cs
- EventSourceCreationData.cs
- ToolStripRendererSwitcher.cs
- OutputCacheSettings.cs
- Image.cs
- Separator.cs
- FileInfo.cs
- Block.cs
- Label.cs
- diagnosticsswitches.cs
- MediaElementAutomationPeer.cs
- EdmComplexPropertyAttribute.cs
- CodeAttachEventStatement.cs
- FontInfo.cs
- ActivityUtilities.cs
- SqlServer2KCompatibilityCheck.cs
- GradientBrush.cs
- XmlSchemaComplexContentRestriction.cs
- BitmapEncoder.cs
- QueryStringParameter.cs
- SqlConnectionHelper.cs
- OledbConnectionStringbuilder.cs
- UserMapPath.cs
- RoleManagerEventArgs.cs
- Trustee.cs
- TaskFileService.cs
- MonthChangedEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- ScrollBar.cs
- ToolStripItemCollection.cs
- CharEntityEncoderFallback.cs
- TrackingMemoryStream.cs
- PackageRelationshipCollection.cs
- AspCompat.cs
- Type.cs
- Model3DGroup.cs
- StackSpiller.cs
- RectangleHotSpot.cs
- SocketManager.cs
- ToolStripItemClickedEventArgs.cs
- NameTable.cs
- PerformanceCounterPermissionEntry.cs
- FixedSOMTableCell.cs
- DesignerFrame.cs
- Util.cs
- ResXResourceReader.cs
- OdbcConnectionFactory.cs
- AddInControllerImpl.cs
- GlyphTypeface.cs
- ProviderException.cs
- OLEDB_Util.cs
- CalendarTable.cs
- DrawingImage.cs
- COSERVERINFO.cs
- SymDocumentType.cs
- RegistryConfigurationProvider.cs
- COM2PictureConverter.cs
- HMACSHA384.cs
- StringPropertyBuilder.cs
- Model3DGroup.cs
- DataSourceSelectArguments.cs
- CompilerErrorCollection.cs
- CompressedStack.cs
- TemplatedMailWebEventProvider.cs
- MainMenu.cs
- DataGridRelationshipRow.cs
- ProtocolsConfigurationEntry.cs
- CodeSnippetTypeMember.cs