Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- HijriCalendar.cs
- Transform3DGroup.cs
- XmlArrayItemAttributes.cs
- XmlSchemaFacet.cs
- CloseSequence.cs
- ImageSourceConverter.cs
- WebPartDescription.cs
- Component.cs
- FieldAccessException.cs
- TemplateKeyConverter.cs
- ConstructorExpr.cs
- ActivityExecutionContext.cs
- CodeSnippetCompileUnit.cs
- PackageStore.cs
- XmlNodeReader.cs
- ServerIdentity.cs
- ProviderCommandInfoUtils.cs
- Hyperlink.cs
- ExpressionBinding.cs
- XmlLanguageConverter.cs
- NetNamedPipeBinding.cs
- DummyDataSource.cs
- SmtpNetworkElement.cs
- SystemIPv6InterfaceProperties.cs
- GradientBrush.cs
- Odbc32.cs
- NoneExcludedImageIndexConverter.cs
- HtmlDocument.cs
- NamespaceList.cs
- ObjectConverter.cs
- PersonalizableAttribute.cs
- _BasicClient.cs
- QilDataSource.cs
- XmlSchemaChoice.cs
- ListItemsPage.cs
- ExpressionTable.cs
- ReferenceConverter.cs
- Delegate.cs
- FileClassifier.cs
- TrailingSpaceComparer.cs
- returneventsaver.cs
- HttpHandler.cs
- WindowsContainer.cs
- JsonWriterDelegator.cs
- UInt64.cs
- DynamicMethod.cs
- InvalidAsynchronousStateException.cs
- HostedHttpContext.cs
- TableParagraph.cs
- PaperSize.cs
- SimpleFieldTemplateFactory.cs
- DependencyPropertyChangedEventArgs.cs
- CollectionBase.cs
- arclist.cs
- ErrorStyle.cs
- XmlSchemaSimpleTypeUnion.cs
- LicenseManager.cs
- WorkflowViewManager.cs
- PageContentCollection.cs
- BindToObject.cs
- LockedActivityGlyph.cs
- AdornedElementPlaceholder.cs
- FacetValues.cs
- ControlBuilderAttribute.cs
- HtmlInputHidden.cs
- DataBoundControlHelper.cs
- XmlSchemaSimpleTypeList.cs
- Utils.cs
- ExternalException.cs
- SetterBaseCollection.cs
- ValidationSummary.cs
- DesignOnlyAttribute.cs
- OverflowException.cs
- BinaryObjectWriter.cs
- TemplatedMailWebEventProvider.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MD5CryptoServiceProvider.cs
- AuthenticationModulesSection.cs
- ZipIOCentralDirectoryFileHeader.cs
- DiscoveryDocumentSearchPattern.cs
- MetadataPropertyCollection.cs
- EventLogInternal.cs
- Stopwatch.cs
- XmlWriterTraceListener.cs
- MetroSerializationManager.cs
- PrivilegedConfigurationManager.cs
- RowUpdatingEventArgs.cs
- AppliedDeviceFiltersEditor.cs
- Dynamic.cs
- _LazyAsyncResult.cs
- UrlMappingsSection.cs
- XmlSerializerAssemblyAttribute.cs
- AccessViolationException.cs
- XsltLoader.cs
- CardSpaceShim.cs
- MaterialCollection.cs
- XmlChildNodes.cs
- webeventbuffer.cs
- SafeCryptContextHandle.cs
- MobileContainerDesigner.cs