Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XamlTypeMapper.cs
- ToolBarButtonClickEvent.cs
- ObjectAssociationEndMapping.cs
- Calendar.cs
- ProxySimple.cs
- DataFieldCollectionEditor.cs
- DataServiceRequestArgs.cs
- SafeArrayTypeMismatchException.cs
- TryCatchDesigner.xaml.cs
- ProjectedWrapper.cs
- FormatConvertedBitmap.cs
- ReferenceEqualityComparer.cs
- XmlNodeComparer.cs
- StrokeNodeData.cs
- Environment.cs
- StrokeDescriptor.cs
- ClientBuildManager.cs
- webbrowsersite.cs
- InputScope.cs
- precedingquery.cs
- DecoderFallbackWithFailureFlag.cs
- DataGridColumn.cs
- BufferedWebEventProvider.cs
- HandlerMappingMemo.cs
- ADConnectionHelper.cs
- X509Certificate2Collection.cs
- Table.cs
- ACE.cs
- MarkedHighlightComponent.cs
- InlineUIContainer.cs
- ProfilePropertySettingsCollection.cs
- SimpleType.cs
- PrintPageEvent.cs
- TextEmbeddedObject.cs
- XPathArrayIterator.cs
- RubberbandSelector.cs
- TreeViewItem.cs
- WS2007FederationHttpBindingCollectionElement.cs
- RectangleConverter.cs
- WmlCalendarAdapter.cs
- UriParserTemplates.cs
- RenderTargetBitmap.cs
- RelationalExpressions.cs
- DesignerDataStoredProcedure.cs
- TableColumn.cs
- CellNormalizer.cs
- DataGridAddNewRow.cs
- WebControlsSection.cs
- XmlUnspecifiedAttribute.cs
- SynchronizationContext.cs
- TextServicesManager.cs
- ZipIOBlockManager.cs
- CqlLexer.cs
- InternalException.cs
- SystemNetHelpers.cs
- ColorTranslator.cs
- SoapIgnoreAttribute.cs
- DetailsViewDeletedEventArgs.cs
- DecimalAnimation.cs
- SymDocumentType.cs
- TrackingMemoryStream.cs
- CombinedGeometry.cs
- GeneralTransform3DGroup.cs
- RoutedEvent.cs
- SqlDataSourceFilteringEventArgs.cs
- AutomationAttributeInfo.cs
- DummyDataSource.cs
- SafeTokenHandle.cs
- ProfileEventArgs.cs
- Baml2006ReaderSettings.cs
- BoundColumn.cs
- TCPListener.cs
- EntityDataSourceMemberPath.cs
- SiteIdentityPermission.cs
- TabletDevice.cs
- WebHttpElement.cs
- Journal.cs
- DeferredRunTextReference.cs
- XmlNodeChangedEventArgs.cs
- Peer.cs
- MasterPageParser.cs
- CurrencyWrapper.cs
- HandleRef.cs
- ObjectHandle.cs
- FolderLevelBuildProvider.cs
- LabelAutomationPeer.cs
- TransformDescriptor.cs
- BlurBitmapEffect.cs
- HttpModuleAction.cs
- JsonServiceDocumentSerializer.cs
- DiscoveryMessageSequence11.cs
- InitializingNewItemEventArgs.cs
- DataTemplateKey.cs
- AddressHeaderCollection.cs
- MainMenu.cs
- DataGridViewRowStateChangedEventArgs.cs
- PointF.cs
- ProtocolViolationException.cs
- HttpResponseBase.cs
- BulletedListEventArgs.cs