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
- CroppedBitmap.cs
- DoubleCollectionConverter.cs
- BaseConfigurationRecord.cs
- AggregateException.cs
- DataGridViewTopRowAccessibleObject.cs
- XdrBuilder.cs
- XmlComplianceUtil.cs
- storagemappingitemcollection.viewdictionary.cs
- BasicAsyncResult.cs
- SerializationException.cs
- DispatcherBuilder.cs
- AspNetCompatibilityRequirementsMode.cs
- ConfigurationConverterBase.cs
- PolicyUnit.cs
- ContentElement.cs
- ImageSourceConverter.cs
- InfoCard.cs
- ItemList.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ReflectionHelper.cs
- TokenBasedSetEnumerator.cs
- EdmFunction.cs
- SmtpTransport.cs
- SoapExtensionImporter.cs
- ColumnResult.cs
- SatelliteContractVersionAttribute.cs
- Int32Rect.cs
- VectorCollectionValueSerializer.cs
- HandleRef.cs
- AllowedAudienceUriElementCollection.cs
- DataContractFormatAttribute.cs
- DataServiceProcessingPipelineEventArgs.cs
- DrawingVisual.cs
- WindowsRebar.cs
- OutputCacheSection.cs
- TemplateControl.cs
- AutoCompleteStringCollection.cs
- PageAsyncTaskManager.cs
- XmlAtomicValue.cs
- EditorAttribute.cs
- MDIWindowDialog.cs
- SpeechEvent.cs
- XamlVector3DCollectionSerializer.cs
- AssertFilter.cs
- SafeCoTaskMem.cs
- JapaneseCalendar.cs
- IntSecurity.cs
- CacheOutputQuery.cs
- EditorPartCollection.cs
- DivideByZeroException.cs
- DBConcurrencyException.cs
- CutCopyPasteHelper.cs
- LinkedResource.cs
- JsonReaderWriterFactory.cs
- SessionStateModule.cs
- TagPrefixCollection.cs
- EncryptedData.cs
- SessionPageStatePersister.cs
- DataBoundControlParameterTarget.cs
- PolyBezierSegmentFigureLogic.cs
- ContainerParagraph.cs
- SerialPinChanges.cs
- RawMouseInputReport.cs
- CompileXomlTask.cs
- HttpCacheVary.cs
- CacheSection.cs
- PixelFormatConverter.cs
- Publisher.cs
- PolicyException.cs
- BamlLocalizer.cs
- ObjectResult.cs
- EFColumnProvider.cs
- CodeFieldReferenceExpression.cs
- EntityContainerEmitter.cs
- TryCatchDesigner.xaml.cs
- TextTreeInsertElementUndoUnit.cs
- AccessDataSourceWizardForm.cs
- GlyphRun.cs
- WhitespaceRuleReader.cs
- XmlSchemaExporter.cs
- CharacterBufferReference.cs
- ConstructorNeedsTagAttribute.cs
- UserControl.cs
- SchemaLookupTable.cs
- WinEventTracker.cs
- BufferModeSettings.cs
- SHA256.cs
- PathFigureCollectionValueSerializer.cs
- SynchronizationHandlesCodeDomSerializer.cs
- DataGridViewDataConnection.cs
- MethodResolver.cs
- SuppressMergeCheckAttribute.cs
- TreeView.cs
- FixedSOMContainer.cs
- BooleanProjectedSlot.cs
- WebPartEditVerb.cs
- DeclaredTypeValidator.cs
- Function.cs
- XmlSchemaAnnotation.cs
- DataPager.cs