Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TcpTransportSecurityElement.cs
- SymmetricKeyWrap.cs
- ParserContext.cs
- VisualStyleRenderer.cs
- TextTreeUndo.cs
- VBCodeProvider.cs
- SplitterEvent.cs
- XamlPathDataSerializer.cs
- SafeArrayTypeMismatchException.cs
- DebuggerAttributes.cs
- EndpointBehaviorElement.cs
- Utils.cs
- RegionIterator.cs
- XmlEntityReference.cs
- FunctionDetailsReader.cs
- ObjectQueryExecutionPlan.cs
- AppliesToBehaviorDecisionTable.cs
- NaturalLanguageHyphenator.cs
- _StreamFramer.cs
- ToolboxItem.cs
- ToolStripContextMenu.cs
- TypeForwardedToAttribute.cs
- LogRestartAreaEnumerator.cs
- DirtyTextRange.cs
- BoundField.cs
- DataObjectFieldAttribute.cs
- InvalidCardException.cs
- AssemblyAttributes.cs
- TypeSource.cs
- TextBoxAutomationPeer.cs
- Constants.cs
- EntityContainerRelationshipSet.cs
- SystemColors.cs
- KerberosTokenFactoryCredential.cs
- SecureUICommand.cs
- XmlQueryTypeFactory.cs
- DynamicILGenerator.cs
- DetailsViewUpdatedEventArgs.cs
- CheckBoxFlatAdapter.cs
- FixedSOMGroup.cs
- AccessDataSource.cs
- EventHandlersStore.cs
- WrappingXamlSchemaContext.cs
- DateBoldEvent.cs
- SecurityDescriptor.cs
- Pair.cs
- TemplateKey.cs
- ExtensibleClassFactory.cs
- HtmlInputImage.cs
- StorageFunctionMapping.cs
- AttributeAction.cs
- WebEventTraceProvider.cs
- NameScopePropertyAttribute.cs
- SqlDataRecord.cs
- EntityTemplateFactory.cs
- CompilerScope.cs
- And.cs
- GroupQuery.cs
- TranslateTransform.cs
- MD5CryptoServiceProvider.cs
- ReadOnlyPermissionSet.cs
- CodeComment.cs
- JsonWriter.cs
- HandlerElement.cs
- FontFamily.cs
- RoleService.cs
- CounterCreationData.cs
- DelimitedListTraceListener.cs
- ColumnCollectionEditor.cs
- InputLanguageProfileNotifySink.cs
- EndPoint.cs
- BamlLocalizableResource.cs
- BaseComponentEditor.cs
- IApplicationTrustManager.cs
- WindowsListViewGroupHelper.cs
- GeneratedContractType.cs
- DataGridViewColumnHeaderCell.cs
- BuildProvidersCompiler.cs
- AlternateViewCollection.cs
- CommandPlan.cs
- Int32Storage.cs
- ForwardPositionQuery.cs
- ToolStripActionList.cs
- DataTableClearEvent.cs
- FileSystemInfo.cs
- BrushValueSerializer.cs
- StateDesignerConnector.cs
- DoubleIndependentAnimationStorage.cs
- TraceContextEventArgs.cs
- MD5.cs
- OleDbEnumerator.cs
- ColumnReorderedEventArgs.cs
- XmlWellformedWriter.cs
- TableSectionStyle.cs
- DataGridViewCellEventArgs.cs
- AxHost.cs
- LambdaCompiler.Lambda.cs
- TableStyle.cs
- Proxy.cs
- TextTreeInsertElementUndoUnit.cs