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
- TdsValueSetter.cs
- RawTextInputReport.cs
- ValidationHelpers.cs
- AnnotationDocumentPaginator.cs
- MessageTransmitTraceRecord.cs
- LinqDataSourceContextEventArgs.cs
- TemplateLookupAction.cs
- Accessible.cs
- DecimalAnimationBase.cs
- ObjectAnimationUsingKeyFrames.cs
- AmbiguousMatchException.cs
- HttpWebRequest.cs
- FormsAuthenticationEventArgs.cs
- DesignerDataRelationship.cs
- TimeStampChecker.cs
- Boolean.cs
- XmlReflectionImporter.cs
- FileLoadException.cs
- RegexTree.cs
- AdornedElementPlaceholder.cs
- InvalidCastException.cs
- PropertyChangingEventArgs.cs
- ExpressionBindings.cs
- ProtocolElement.cs
- DistributedTransactionPermission.cs
- SelectionGlyphBase.cs
- FormatterServicesNoSerializableCheck.cs
- ProxyWebPartConnectionCollection.cs
- ThemeInfoAttribute.cs
- EventHandlerList.cs
- CodeTypeParameter.cs
- OdbcRowUpdatingEvent.cs
- XmlSchemaAppInfo.cs
- WindowsListViewGroupSubsetLink.cs
- WebPartManager.cs
- ScriptingScriptResourceHandlerSection.cs
- MaskedTextBox.cs
- RepeatBehavior.cs
- NativeMethods.cs
- SmiEventSink_Default.cs
- ExpressionBindingsDialog.cs
- _ContextAwareResult.cs
- InfoCardRSACryptoProvider.cs
- IntMinMaxAggregationOperator.cs
- GenericRootAutomationPeer.cs
- EmptyCollection.cs
- SessionState.cs
- Slider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AuthenticatedStream.cs
- NetCodeGroup.cs
- CssClassPropertyAttribute.cs
- sqlmetadatafactory.cs
- BindingObserver.cs
- ScriptIgnoreAttribute.cs
- NGCUIElementCollectionSerializerAsync.cs
- PackWebRequest.cs
- ProgressBarBrushConverter.cs
- NativeMethods.cs
- IDictionary.cs
- DeflateStream.cs
- SwitchElementsCollection.cs
- AxisAngleRotation3D.cs
- SamlAttribute.cs
- SqlException.cs
- XmlElementAttributes.cs
- TextOnlyOutput.cs
- RenderingEventArgs.cs
- DataColumnMappingCollection.cs
- PropertyGroupDescription.cs
- CodeDomConfigurationHandler.cs
- RMPublishingDialog.cs
- Symbol.cs
- Descriptor.cs
- SmiContext.cs
- UnsafeNativeMethods.cs
- FixedSOMLineCollection.cs
- LogExtent.cs
- DesignerVerbCollection.cs
- HuffmanTree.cs
- HuffmanTree.cs
- FormsAuthenticationUser.cs
- FileCodeGroup.cs
- SizeKeyFrameCollection.cs
- FactoryRecord.cs
- PartitionedDataSource.cs
- ToolZone.cs
- WizardStepBase.cs
- StorageEntitySetMapping.cs
- SQLDouble.cs
- ConnectionPoolManager.cs
- TypeResolver.cs
- LowerCaseStringConverter.cs
- MembershipValidatePasswordEventArgs.cs
- AffineTransform3D.cs
- GradientPanel.cs
- MdiWindowListItemConverter.cs
- WebScriptEnablingBehavior.cs
- TextEditorMouse.cs
- ContainerTracking.cs