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
- DataControlButton.cs
- ChildrenQuery.cs
- RSAOAEPKeyExchangeFormatter.cs
- WriteLine.cs
- LayoutTableCell.cs
- ItemsControlAutomationPeer.cs
- CodeCatchClause.cs
- MailSettingsSection.cs
- ResizeGrip.cs
- SqlUserDefinedAggregateAttribute.cs
- XmlText.cs
- InstanceKeyCompleteException.cs
- SoapCommonClasses.cs
- HtmlForm.cs
- XmlUnspecifiedAttribute.cs
- UserControl.cs
- panel.cs
- Random.cs
- SystemColors.cs
- SamlDoNotCacheCondition.cs
- TileModeValidation.cs
- XPathSelfQuery.cs
- KeyPullup.cs
- SerializerWriterEventHandlers.cs
- _SslStream.cs
- PrivacyNoticeBindingElement.cs
- BCLDebug.cs
- AuthenticationServiceManager.cs
- ResourceWriter.cs
- ModelServiceImpl.cs
- FamilyMapCollection.cs
- TrackBar.cs
- ManagedWndProcTracker.cs
- DecimalConverter.cs
- WebContext.cs
- PageSettings.cs
- SystemMulticastIPAddressInformation.cs
- RtfToken.cs
- FileUtil.cs
- ApplicationSecurityInfo.cs
- InternalsVisibleToAttribute.cs
- UrlMappingsModule.cs
- InputManager.cs
- FocusWithinProperty.cs
- WebPartDescriptionCollection.cs
- DiscoveryMessageProperty.cs
- SafeBitVector32.cs
- MatchingStyle.cs
- TypeBuilder.cs
- NullableConverter.cs
- BindingValueChangedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- AttributeUsageAttribute.cs
- PageAsyncTaskManager.cs
- OleDbMetaDataFactory.cs
- BufferedStream.cs
- WindowsFormsLinkLabel.cs
- UdpChannelFactory.cs
- InheritedPropertyChangedEventArgs.cs
- PageClientProxyGenerator.cs
- FontDialog.cs
- ImageListStreamer.cs
- PrintingPermission.cs
- HttpModuleCollection.cs
- AppDomainUnloadedException.cs
- TextTreePropertyUndoUnit.cs
- Vector3DAnimationUsingKeyFrames.cs
- listitem.cs
- AutomationFocusChangedEventArgs.cs
- WSDualHttpSecurity.cs
- GraphicsPath.cs
- Table.cs
- oledbconnectionstring.cs
- ExceptionUtil.cs
- GuidelineCollection.cs
- PipelineModuleStepContainer.cs
- ConfigurationLocation.cs
- Tracer.cs
- InternalsVisibleToAttribute.cs
- NullableDecimalMinMaxAggregationOperator.cs
- SecurityBindingElementImporter.cs
- StreamWithDictionary.cs
- TextServicesCompartment.cs
- XmlIlVisitor.cs
- HtmlEncodedRawTextWriter.cs
- WebHeaderCollection.cs
- ConfigurationProperty.cs
- PathTooLongException.cs
- MimeTypeMapper.cs
- DataGridViewCellParsingEventArgs.cs
- PeerResolverBindingElement.cs
- TrackingProfileManager.cs
- LinqMaximalSubtreeNominator.cs
- NamedPipeTransportElement.cs
- EventMappingSettings.cs
- XmlSchemaInferenceException.cs
- MethodBuilder.cs
- WSFederationHttpBindingElement.cs
- Splitter.cs
- returneventsaver.cs