Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ConfigurationElementCollection.cs
- HelpHtmlBuilder.cs
- ListItemParagraph.cs
- DataPagerFieldCollection.cs
- UdpContractFilterBehavior.cs
- ProtocolState.cs
- InternalsVisibleToAttribute.cs
- TextElementEnumerator.cs
- Tokenizer.cs
- PasswordRecoveryDesigner.cs
- VectorAnimationUsingKeyFrames.cs
- CompositeScriptReferenceEventArgs.cs
- DocumentEventArgs.cs
- CodeDomSerializerBase.cs
- TextServicesCompartmentContext.cs
- SamlAssertionKeyIdentifierClause.cs
- DbProviderFactoriesConfigurationHandler.cs
- CriticalHandle.cs
- TokenizerHelper.cs
- Stopwatch.cs
- OracleConnectionString.cs
- WorkerRequest.cs
- TextDecoration.cs
- InputScopeAttribute.cs
- Calendar.cs
- Rfc2898DeriveBytes.cs
- AutomationPeer.cs
- ConnectionString.cs
- TemplateControl.cs
- CaseKeyBox.ViewModel.cs
- MouseActionConverter.cs
- ResourceCategoryAttribute.cs
- WindowsSecurityTokenAuthenticator.cs
- TouchDevice.cs
- ToolStripItemImageRenderEventArgs.cs
- MulticastOption.cs
- StorageMappingFragment.cs
- ValidationService.cs
- ConfigPathUtility.cs
- XmlSchemaSimpleContent.cs
- MultiSelectRootGridEntry.cs
- loginstatus.cs
- DnsEndPoint.cs
- EmptyTextWriter.cs
- ThaiBuddhistCalendar.cs
- OutputWindow.cs
- Freezable.cs
- SafeLibraryHandle.cs
- SchemaExporter.cs
- BamlResourceDeserializer.cs
- XmlFormatExtensionPointAttribute.cs
- DataGridToolTip.cs
- PrincipalPermission.cs
- CompilerLocalReference.cs
- Vertex.cs
- ConfigurationLocationCollection.cs
- LiteralLink.cs
- FontDialog.cs
- EllipseGeometry.cs
- Utils.cs
- XmlTypeAttribute.cs
- ObjectFullSpanRewriter.cs
- ControlBuilderAttribute.cs
- SqlProviderManifest.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SqlConnectionFactory.cs
- cookiecontainer.cs
- DbProviderFactories.cs
- WindowsFormsSectionHandler.cs
- RenderDataDrawingContext.cs
- DrawingContextWalker.cs
- ClientBuildManager.cs
- PenThread.cs
- HttpListenerResponse.cs
- RegistrationServices.cs
- AutomationElement.cs
- ProxyHelper.cs
- ObjectSet.cs
- UInt64Storage.cs
- Evidence.cs
- DataGridViewAccessibleObject.cs
- SystemWebSectionGroup.cs
- DisplayNameAttribute.cs
- RepeaterItem.cs
- TypeInfo.cs
- DatatypeImplementation.cs
- FileDetails.cs
- PinnedBufferMemoryStream.cs
- Itemizer.cs
- VisualBrush.cs
- XmlTypeAttribute.cs
- DataSourceIDConverter.cs
- OutputCacheSettingsSection.cs
- RoleManagerModule.cs
- WebPartEditorCancelVerb.cs
- FileAuthorizationModule.cs
- DataSourceSerializationException.cs
- BitmapEffectInputData.cs
- ServiceModelConfigurationSectionGroup.cs
- ParsedRoute.cs