Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EditorZone.cs
- TypeDescriptionProviderAttribute.cs
- AutomationPeer.cs
- DispatcherHooks.cs
- XmlCharCheckingReader.cs
- CodeRegionDirective.cs
- AutomationEvent.cs
- DispatcherTimer.cs
- EdmToObjectNamespaceMap.cs
- COM2IDispatchConverter.cs
- ScriptIgnoreAttribute.cs
- PathStreamGeometryContext.cs
- MetadataAssemblyHelper.cs
- VideoDrawing.cs
- FixedSOMLineCollection.cs
- XmlMessageFormatter.cs
- WebConfigurationManager.cs
- Sequence.cs
- ConcurrencyMode.cs
- ExecutionContext.cs
- Effect.cs
- _DomainName.cs
- SqlAggregateChecker.cs
- HttpSessionStateWrapper.cs
- UnsafeNativeMethods.cs
- _ProxyChain.cs
- SqlCachedBuffer.cs
- EmbeddedMailObject.cs
- PermissionSetTriple.cs
- DateTimeFormatInfoScanner.cs
- MailHeaderInfo.cs
- SynchronizedInputAdaptor.cs
- BaseTemplateBuildProvider.cs
- FixedHyperLink.cs
- BCLDebug.cs
- Reference.cs
- TdsParserSafeHandles.cs
- CompiledAction.cs
- TreeNode.cs
- FirstMatchCodeGroup.cs
- CodeIdentifiers.cs
- FeedUtils.cs
- XmlLoader.cs
- WebPartCloseVerb.cs
- InheritanceRules.cs
- XmlWriterSettings.cs
- ObjectViewQueryResultData.cs
- SecurityUtils.cs
- TypedTableGenerator.cs
- rsa.cs
- GridViewUpdatedEventArgs.cs
- TextServicesHost.cs
- CheckedListBox.cs
- ItemsControlAutomationPeer.cs
- CaseInsensitiveComparer.cs
- WebControlsSection.cs
- ListViewAutomationPeer.cs
- QueryIntervalOp.cs
- CommentAction.cs
- AtlasWeb.Designer.cs
- TextRunCache.cs
- WindowsFont.cs
- UserMapPath.cs
- UpdateCommandGenerator.cs
- EventListenerClientSide.cs
- Pts.cs
- ReadOnlyHierarchicalDataSource.cs
- CharacterMetrics.cs
- SoapServerProtocol.cs
- CodeExporter.cs
- TypeConverter.cs
- _AutoWebProxyScriptWrapper.cs
- DataGridViewCellMouseEventArgs.cs
- SeverityFilter.cs
- Operand.cs
- SlipBehavior.cs
- BinaryCommonClasses.cs
- RuleSetDialog.Designer.cs
- BasicExpressionVisitor.cs
- TreeWalker.cs
- Point3D.cs
- AttributeCollection.cs
- SynchronizedPool.cs
- WebPartCloseVerb.cs
- ValueTypeFixupInfo.cs
- NopReturnReader.cs
- JsonObjectDataContract.cs
- DocumentReferenceCollection.cs
- HttpWriter.cs
- ObjectDataProvider.cs
- DesignerOptionService.cs
- File.cs
- OleDbDataAdapter.cs
- SimpleHandlerBuildProvider.cs
- EntityDescriptor.cs
- ServiceObjectContainer.cs
- Stack.cs
- Axis.cs
- Point3DValueSerializer.cs
- ObjectView.cs