Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ApplicationFileParser.cs / 1503810 / 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 PageParser.DefaultApplicationBaseType ?? 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
- AssemblyBuilder.cs
- DoubleAverageAggregationOperator.cs
- StorageInfo.cs
- PrimitiveDataContract.cs
- CompilationSection.cs
- PageContentAsyncResult.cs
- XmlObjectSerializerReadContext.cs
- OneWayChannelFactory.cs
- X500Name.cs
- GridViewCommandEventArgs.cs
- ToolStripPanelRow.cs
- SafeNativeMethodsOther.cs
- ArgumentValue.cs
- WorkflowStateRollbackService.cs
- UnicastIPAddressInformationCollection.cs
- FrugalList.cs
- EventLogEntryCollection.cs
- TransactionContext.cs
- ConfigXmlWhitespace.cs
- EncoderParameter.cs
- DateTimePickerDesigner.cs
- _SslSessionsCache.cs
- PropertyNames.cs
- TextBoxAutoCompleteSourceConverter.cs
- ServiceNameElementCollection.cs
- XmlReader.cs
- CodeTypeReferenceCollection.cs
- RootNamespaceAttribute.cs
- LocalizabilityAttribute.cs
- DataKey.cs
- MultipartIdentifier.cs
- COM2ExtendedTypeConverter.cs
- FaultReason.cs
- RuleSettingsCollection.cs
- CommandHelper.cs
- Constraint.cs
- BindingWorker.cs
- BitmapEffectState.cs
- Vector3D.cs
- ChildChangedEventArgs.cs
- XamlReaderHelper.cs
- StateElement.cs
- BehaviorEditorPart.cs
- DetailsViewDeleteEventArgs.cs
- BinaryNode.cs
- HandlerWithFactory.cs
- XmlNamespaceManager.cs
- HTMLTextWriter.cs
- ObjectStateManagerMetadata.cs
- DbProviderServices.cs
- FillErrorEventArgs.cs
- BitmapEffectvisualstate.cs
- InternalConfigEventArgs.cs
- VariableQuery.cs
- ViewManager.cs
- DrawTreeNodeEventArgs.cs
- HandlerBase.cs
- DbConnectionPoolOptions.cs
- securitycriticaldata.cs
- ViewPort3D.cs
- CursorConverter.cs
- _SSPISessionCache.cs
- MailMessage.cs
- IImplicitResourceProvider.cs
- NavigationProperty.cs
- ThreadPool.cs
- DoubleCollectionConverter.cs
- ExternalException.cs
- FilterEventArgs.cs
- CqlWriter.cs
- HttpPostedFile.cs
- LoadWorkflowAsyncResult.cs
- XmlChildEnumerator.cs
- BitmapFrame.cs
- ScriptReferenceBase.cs
- ContainerFilterService.cs
- Validator.cs
- PartialCachingAttribute.cs
- MouseGestureConverter.cs
- ToolStripArrowRenderEventArgs.cs
- SectionInput.cs
- HtmlImage.cs
- TargetControlTypeAttribute.cs
- PaperSource.cs
- StyleHelper.cs
- IChannel.cs
- ManipulationStartingEventArgs.cs
- ClientRoleProvider.cs
- UserControlFileEditor.cs
- AlignmentYValidation.cs
- WebBrowserProgressChangedEventHandler.cs
- CodeGroup.cs
- XmlDomTextWriter.cs
- FragmentQueryProcessor.cs
- StoreUtilities.cs
- CodeSubDirectoriesCollection.cs
- DataServiceContext.cs
- SignatureConfirmationElement.cs
- TypeLibConverter.cs
- ContentDefinition.cs