Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PeerNameRegistration.cs
- XPathAxisIterator.cs
- sqlpipe.cs
- ValueConversionAttribute.cs
- BitmapFrameDecode.cs
- MultiViewDesigner.cs
- TextSchema.cs
- FederatedMessageSecurityOverHttpElement.cs
- BitmapEffectDrawingContextWalker.cs
- ImageFormatConverter.cs
- SecurityCriticalDataForSet.cs
- SynchronizationFilter.cs
- EmptyEnumerable.cs
- DateTimeFormatInfo.cs
- InputGestureCollection.cs
- ToolConsole.cs
- SendActivityDesignerTheme.cs
- WebSysDisplayNameAttribute.cs
- securitycriticaldataClass.cs
- EditorAttributeInfo.cs
- RegexGroupCollection.cs
- Header.cs
- Polyline.cs
- XmlValidatingReader.cs
- AppDomainProtocolHandler.cs
- CompensationHandlingFilter.cs
- Viewport2DVisual3D.cs
- VirtualPathUtility.cs
- PackagePartCollection.cs
- LoadMessageLogger.cs
- HttpCookieCollection.cs
- DocumentViewerAutomationPeer.cs
- CreateInstanceBinder.cs
- Pens.cs
- TypeBuilder.cs
- FileNameEditor.cs
- SymLanguageType.cs
- HiddenFieldDesigner.cs
- DoubleKeyFrameCollection.cs
- DataControlPagerLinkButton.cs
- StronglyTypedResourceBuilder.cs
- WCFModelStrings.Designer.cs
- XmlWhitespace.cs
- RequestCacheValidator.cs
- WebException.cs
- Compiler.cs
- WebBrowsableAttribute.cs
- TextModifier.cs
- InvalidCommandTreeException.cs
- TableAutomationPeer.cs
- UIAgentAsyncParams.cs
- OleDbCommand.cs
- AutomationElementIdentifiers.cs
- MemoryRecordBuffer.cs
- XmlExpressionDumper.cs
- ELinqQueryState.cs
- GAC.cs
- UnauthorizedAccessException.cs
- ListDictionaryInternal.cs
- ListControlConvertEventArgs.cs
- ReferenceSchema.cs
- LiteralControl.cs
- XmlSchemaAnnotated.cs
- NavigationFailedEventArgs.cs
- SafeLocalMemHandle.cs
- DuplicateWaitObjectException.cs
- DataKey.cs
- DesignerWebPartChrome.cs
- Line.cs
- NegotiateStream.cs
- SizeAnimationUsingKeyFrames.cs
- TabControlDesigner.cs
- SelectedDatesCollection.cs
- SafeFileMappingHandle.cs
- ReadOnlyAttribute.cs
- TemplatedEditableDesignerRegion.cs
- ControlUtil.cs
- SqlDataReaderSmi.cs
- ISAPIRuntime.cs
- BitmapSource.cs
- safemediahandle.cs
- EntityClientCacheEntry.cs
- Clock.cs
- Speller.cs
- SqlUtil.cs
- GeometryModel3D.cs
- precedingsibling.cs
- DataGridViewComboBoxColumn.cs
- XsltContext.cs
- ExpressionVisitorHelpers.cs
- ListItemParagraph.cs
- HitTestDrawingContextWalker.cs
- DeclaredTypeElementCollection.cs
- PassportAuthenticationEventArgs.cs
- MimeFormatExtensions.cs
- initElementDictionary.cs
- FormatStringEditor.cs
- Configuration.cs
- XPathItem.cs
- GridLengthConverter.cs