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
- ClientTargetSection.cs
- RIPEMD160.cs
- DnsPermission.cs
- DelayLoadType.cs
- ItemCollection.cs
- TypeListConverter.cs
- DomainConstraint.cs
- PrivilegeNotHeldException.cs
- EntityDataSourceStatementEditor.cs
- HierarchicalDataTemplate.cs
- BuildResultCache.cs
- SafeNativeMethods.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- CategoryNameCollection.cs
- controlskin.cs
- SafeRegistryKey.cs
- StandardOleMarshalObject.cs
- x509utils.cs
- SqlWorkflowPersistenceService.cs
- EntityCommandCompilationException.cs
- UInt16.cs
- SimpleTableProvider.cs
- ColorTransformHelper.cs
- Query.cs
- SafePointer.cs
- SignedInfo.cs
- FixedSOMElement.cs
- LockCookie.cs
- SubMenuStyleCollection.cs
- ArrayList.cs
- ThreadExceptionDialog.cs
- BamlRecordReader.cs
- XmlHierarchicalDataSourceView.cs
- ProcessModuleCollection.cs
- ButtonBase.cs
- PageParserFilter.cs
- WebConfigurationFileMap.cs
- PauseStoryboard.cs
- Compilation.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TextTrailingCharacterEllipsis.cs
- PhysicalFontFamily.cs
- StickyNote.cs
- ContentFileHelper.cs
- ServiceChannelManager.cs
- DataGridViewColumnCollection.cs
- Message.cs
- DataGridPageChangedEventArgs.cs
- HttpCookie.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- WindowsTooltip.cs
- ClientSideProviderDescription.cs
- TransactedBatchingBehavior.cs
- Buffer.cs
- Events.cs
- Int64Converter.cs
- ViewEvent.cs
- EventSourceCreationData.cs
- XmlILConstructAnalyzer.cs
- SerializationStore.cs
- DataGridViewCheckBoxCell.cs
- SubMenuStyleCollection.cs
- httpapplicationstate.cs
- RestClientProxyHandler.cs
- RijndaelManagedTransform.cs
- xmlsaver.cs
- DbProviderConfigurationHandler.cs
- CommandHelpers.cs
- CodeMemberProperty.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- RemoteWebConfigurationHostStream.cs
- IssuedTokenServiceCredential.cs
- ObjectDataSourceView.cs
- OleDbCommandBuilder.cs
- Deflater.cs
- WebServiceHandlerFactory.cs
- ActiveDocumentEvent.cs
- RightsManagementInformation.cs
- ListSortDescription.cs
- DataFormats.cs
- DataGridPreparingCellForEditEventArgs.cs
- Rule.cs
- FontFamily.cs
- GlyphRunDrawing.cs
- LocatorPart.cs
- AuthenticationModuleElement.cs
- ColorAnimationUsingKeyFrames.cs
- Annotation.cs
- DiscoveryExceptionDictionary.cs
- Statements.cs
- ContentPlaceHolder.cs
- DependentList.cs
- StringFreezingAttribute.cs
- ChangePassword.cs
- DataListCommandEventArgs.cs
- ActiveXSite.cs
- EntitySqlQueryBuilder.cs
- WorkflowValidationFailedException.cs
- UnsafePeerToPeerMethods.cs