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
- CodeTypeDeclaration.cs
- MailWriter.cs
- CallSite.cs
- Dynamic.cs
- ItemsControl.cs
- CollectionBuilder.cs
- ReverseInheritProperty.cs
- BitmapEffectInputData.cs
- GetCertificateRequest.cs
- GPPOINTF.cs
- HMAC.cs
- ISAPIRuntime.cs
- ElementHost.cs
- UnmanagedHandle.cs
- BlurBitmapEffect.cs
- MethodBuilder.cs
- RowSpanVector.cs
- ConditionCollection.cs
- IdentifierCollection.cs
- FrameworkContextData.cs
- NameValueCollection.cs
- UseLicense.cs
- SelectionRange.cs
- EdmItemError.cs
- ViewPort3D.cs
- EnumUnknown.cs
- RSAOAEPKeyExchangeFormatter.cs
- TemplateField.cs
- RangeValidator.cs
- TiffBitmapDecoder.cs
- RelationshipConverter.cs
- NameTable.cs
- RegexTypeEditor.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- UpdateCommand.cs
- ToolStripDropDownClosedEventArgs.cs
- CellTreeNodeVisitors.cs
- PerformanceCounterPermissionEntry.cs
- ShaderRenderModeValidation.cs
- CompositeControl.cs
- DatePickerTextBox.cs
- DataGridViewBindingCompleteEventArgs.cs
- StubHelpers.cs
- DataSourceCacheDurationConverter.cs
- CompressEmulationStream.cs
- MediaContext.cs
- RSAOAEPKeyExchangeFormatter.cs
- HandledMouseEvent.cs
- UnsignedPublishLicense.cs
- SchemaRegistration.cs
- ControlValuePropertyAttribute.cs
- ShapingEngine.cs
- Symbol.cs
- SamlAction.cs
- FunctionNode.cs
- Util.cs
- EmbeddedMailObjectsCollection.cs
- SiteMembershipCondition.cs
- CodeStatementCollection.cs
- DataGridColumnEventArgs.cs
- MediaTimeline.cs
- Buffer.cs
- WpfKnownMember.cs
- ObservableCollection.cs
- XsltException.cs
- SQLDecimal.cs
- XappLauncher.cs
- SqlCachedBuffer.cs
- TreeView.cs
- ResourceManager.cs
- FolderLevelBuildProvider.cs
- UserControlAutomationPeer.cs
- Scene3D.cs
- MarkupCompilePass1.cs
- Part.cs
- EmptyStringExpandableObjectConverter.cs
- securitycriticaldataClass.cs
- WebBrowserNavigatingEventHandler.cs
- PreloadedPackages.cs
- MimeTypePropertyAttribute.cs
- IPEndPointCollection.cs
- CultureInfo.cs
- URLIdentityPermission.cs
- ActivityExecutor.cs
- WebEvents.cs
- Queue.cs
- BamlBinaryWriter.cs
- EventToken.cs
- UrlMapping.cs
- SecurityTokenRequirement.cs
- WebPartsSection.cs
- GridProviderWrapper.cs
- FileDialogCustomPlace.cs
- DocumentSequenceHighlightLayer.cs
- XmlSchemaObjectCollection.cs
- RequestTimeoutManager.cs
- MobileControlsSectionHandler.cs
- WebServiceFault.cs
- SecurityException.cs
- DllNotFoundException.cs