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
- SecurityHeaderElementInferenceEngine.cs
- UIElementParaClient.cs
- HttpCacheParams.cs
- GenericsInstances.cs
- XNameConverter.cs
- HtmlTitle.cs
- Serializer.cs
- OutputScopeManager.cs
- Size.cs
- IOThreadTimer.cs
- BindingContext.cs
- MinMaxParagraphWidth.cs
- RtfControls.cs
- RouteTable.cs
- Console.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ResourceDescriptionAttribute.cs
- PagerSettings.cs
- _BasicClient.cs
- ValueQuery.cs
- EventRouteFactory.cs
- DispatchOperationRuntime.cs
- PersonalizableTypeEntry.cs
- System.Data_BID.cs
- ButtonFieldBase.cs
- DataGridViewRowCancelEventArgs.cs
- ApplicationGesture.cs
- TextServicesDisplayAttribute.cs
- ScrollContentPresenter.cs
- CustomSignedXml.cs
- CharKeyFrameCollection.cs
- DataGridComponentEditor.cs
- TableNameAttribute.cs
- _CacheStreams.cs
- ClockGroup.cs
- RegularExpressionValidator.cs
- recordstatefactory.cs
- PanelStyle.cs
- LoginView.cs
- Speller.cs
- PageHandlerFactory.cs
- DelayedRegex.cs
- SerializerProvider.cs
- HttpProcessUtility.cs
- SliderAutomationPeer.cs
- Boolean.cs
- IdleTimeoutMonitor.cs
- AdRotator.cs
- Brushes.cs
- UnicastIPAddressInformationCollection.cs
- OLEDB_Util.cs
- FullTextBreakpoint.cs
- StateMachine.cs
- RawStylusActions.cs
- LOSFormatter.cs
- AccessibilityHelperForXpWin2k3.cs
- XmlNavigatorFilter.cs
- WebPartCollection.cs
- OperationCanceledException.cs
- Axis.cs
- ByeOperationAsyncResult.cs
- BitmapEffectInputData.cs
- VBIdentifierDesigner.xaml.cs
- BamlLocalizableResourceKey.cs
- MethodBuilder.cs
- IPCCacheManager.cs
- TableCellCollection.cs
- ThreadExceptionDialog.cs
- StyleXamlParser.cs
- BaseValidator.cs
- MailWriter.cs
- ForEachAction.cs
- ReflectEventDescriptor.cs
- ReadOnlyTernaryTree.cs
- TimeZoneInfo.cs
- XPathMessageFilterTable.cs
- TrustSection.cs
- Environment.cs
- TypeKeyValue.cs
- UrlPropertyAttribute.cs
- DesignTableCollection.cs
- GroupItem.cs
- PasswordTextNavigator.cs
- ServiceDurableInstance.cs
- HttpServerUtilityWrapper.cs
- Publisher.cs
- AdditionalEntityFunctions.cs
- DataMemberFieldConverter.cs
- XmlToDatasetMap.cs
- StrokeNodeData.cs
- TableRowCollection.cs
- WindowsContainer.cs
- Emitter.cs
- ItemCheckedEvent.cs
- ConstructorArgumentAttribute.cs
- WaitHandle.cs
- EventLogger.cs
- DataBindingList.cs
- ProxyWebPartManager.cs
- LogStream.cs