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
- CompilerInfo.cs
- DeploymentSection.cs
- PopupEventArgs.cs
- ListViewItem.cs
- RSATokenProvider.cs
- ProfileService.cs
- Int64AnimationUsingKeyFrames.cs
- InstanceHandleReference.cs
- ExportFileRequest.cs
- DataGridParentRows.cs
- WbmpConverter.cs
- ReferentialConstraintRoleElement.cs
- StylusEditingBehavior.cs
- BinHexDecoder.cs
- odbcmetadatafactory.cs
- ServiceDefaults.cs
- Activator.cs
- DelegatingConfigHost.cs
- TypeConverterBase.cs
- UInt32Storage.cs
- RangeValidator.cs
- BamlResourceSerializer.cs
- EntityDataSourceWrapperCollection.cs
- IndexedString.cs
- NavigationPropertyEmitter.cs
- WorkflowPersistenceService.cs
- infer.cs
- RewritingSimplifier.cs
- HtmlInputCheckBox.cs
- ButtonField.cs
- RelationshipEnd.cs
- SortQuery.cs
- _NestedMultipleAsyncResult.cs
- WsatAdminException.cs
- InvalidWMPVersionException.cs
- SizeAnimation.cs
- RawStylusInputCustomData.cs
- MailWriter.cs
- CompletedAsyncResult.cs
- ToolStripPanelCell.cs
- JoinElimination.cs
- SamlNameIdentifierClaimResource.cs
- CodeDelegateInvokeExpression.cs
- XPathNodePointer.cs
- HttpCookiesSection.cs
- ErrorHandler.cs
- WebBrowserProgressChangedEventHandler.cs
- TypeDependencyAttribute.cs
- AnnotationAuthorChangedEventArgs.cs
- MiniMapControl.xaml.cs
- HwndMouseInputProvider.cs
- DataColumnPropertyDescriptor.cs
- TextParentUndoUnit.cs
- ResourceReader.cs
- RenderingBiasValidation.cs
- IndentTextWriter.cs
- Parser.cs
- AnimationLayer.cs
- RegexFCD.cs
- ObjectStorage.cs
- DataComponentMethodGenerator.cs
- AutoResetEvent.cs
- EntityDataSourceValidationException.cs
- XslAstAnalyzer.cs
- DataFormat.cs
- ImmutablePropertyDescriptorGridEntry.cs
- PropertyDescriptorGridEntry.cs
- ForEachAction.cs
- FormCollection.cs
- XmlnsCache.cs
- TableColumn.cs
- DateBoldEvent.cs
- __Error.cs
- GroupByQueryOperator.cs
- SessionStateUtil.cs
- SimplePropertyEntry.cs
- ReaderWriterLockSlim.cs
- ThicknessConverter.cs
- Literal.cs
- MetadataArtifactLoaderResource.cs
- FixedSOMTableCell.cs
- EntryPointNotFoundException.cs
- DetailsView.cs
- PerformanceCounterCategory.cs
- SqlLiftWhereClauses.cs
- DictionaryGlobals.cs
- WebPartDisplayModeEventArgs.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- WebReferenceOptions.cs
- DateTimeStorage.cs
- PropertyFilterAttribute.cs
- BaseCollection.cs
- GlobalEventManager.cs
- RSAOAEPKeyExchangeFormatter.cs
- UshortList2.cs
- SignatureToken.cs
- MimeTextImporter.cs
- ForAllOperator.cs
- NetworkInterface.cs
- Int32EqualityComparer.cs