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
- CodeCommentStatement.cs
- SafeCertificateContext.cs
- GcSettings.cs
- DataServiceContext.cs
- Emitter.cs
- MeasureItemEvent.cs
- MsmqHostedTransportManager.cs
- PointLight.cs
- EmptyEnumerator.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DynamicPropertyReader.cs
- FormsAuthenticationUser.cs
- DeferredSelectedIndexReference.cs
- SchemaInfo.cs
- MissingManifestResourceException.cs
- DockPattern.cs
- ObjectDataSourceView.cs
- AppDomainManager.cs
- MenuTracker.cs
- TreeViewItemAutomationPeer.cs
- RoutedCommand.cs
- Trace.cs
- ToolStripSettings.cs
- HtmlInputCheckBox.cs
- InvocationExpression.cs
- Source.cs
- GuidTagList.cs
- WsdlBuildProvider.cs
- ThicknessAnimation.cs
- ObjectConverter.cs
- FirstQueryOperator.cs
- IResourceProvider.cs
- SchemaImporterExtensionsSection.cs
- CipherData.cs
- InputMethodStateChangeEventArgs.cs
- SQLMembershipProvider.cs
- BuildDependencySet.cs
- FullTextState.cs
- TabletDeviceInfo.cs
- SecurityDescriptor.cs
- SizeF.cs
- _NestedMultipleAsyncResult.cs
- ScriptHandlerFactory.cs
- TypeConverter.cs
- MobileControlsSection.cs
- Exception.cs
- glyphs.cs
- PixelFormatConverter.cs
- PlainXmlDeserializer.cs
- FaultImportOptions.cs
- ThemeDictionaryExtension.cs
- AutomationElementCollection.cs
- BinaryUtilClasses.cs
- WebProxyScriptElement.cs
- TriggerAction.cs
- BaseCodeDomTreeGenerator.cs
- DataGridViewCellStyle.cs
- JsonServiceDocumentSerializer.cs
- AspCompat.cs
- SymbolPair.cs
- TracedNativeMethods.cs
- ComplexLine.cs
- ConnectionPoolManager.cs
- CultureNotFoundException.cs
- StateMachineSubscription.cs
- TextElementCollection.cs
- TimeZone.cs
- NetworkCredential.cs
- WebPartEventArgs.cs
- reliableinputsessionchannel.cs
- EventDescriptorCollection.cs
- DataGridViewCellCollection.cs
- ModelFactory.cs
- MenuItemBindingCollection.cs
- Binding.cs
- DynamicResourceExtension.cs
- Compiler.cs
- XmlTypeAttribute.cs
- DataContractSerializer.cs
- DbCommandTree.cs
- FixedTextPointer.cs
- ManipulationStartingEventArgs.cs
- RTLAwareMessageBox.cs
- ParallelTimeline.cs
- ResourceReader.cs
- DockProviderWrapper.cs
- Parameter.cs
- ControlBindingsConverter.cs
- ParallelActivityDesigner.cs
- TryLoadRunnableWorkflowCommand.cs
- CmsInterop.cs
- MethodCallTranslator.cs
- RequestSecurityToken.cs
- StringDictionaryWithComparer.cs
- ReadingWritingEntityEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- SqlMetaData.cs
- TypeSystem.cs
- TextCompositionEventArgs.cs
- RowSpanVector.cs