Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ApplicationFileParser.cs / 1503810 / 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 PageParser.DefaultApplicationBaseType ?? 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
- RawKeyboardInputReport.cs
- MediaElement.cs
- TableRowCollection.cs
- WebContext.cs
- ActivityCodeGenerator.cs
- IdentitySection.cs
- QuaternionRotation3D.cs
- XmlCDATASection.cs
- TracePayload.cs
- FunctionImportElement.cs
- InsufficientMemoryException.cs
- RenameRuleObjectDialog.Designer.cs
- RowToFieldTransformer.cs
- ProviderConnectionPoint.cs
- HttpValueCollection.cs
- AnnotationObservableCollection.cs
- cookieexception.cs
- SettingsContext.cs
- ScriptReferenceEventArgs.cs
- SqlProfileProvider.cs
- RawMouseInputReport.cs
- WorkflowMarkupSerializationException.cs
- QueryPageSettingsEventArgs.cs
- StylusCaptureWithinProperty.cs
- PenContext.cs
- ObjectDataSourceDisposingEventArgs.cs
- NeutralResourcesLanguageAttribute.cs
- AssociationSetMetadata.cs
- IssuedTokenServiceElement.cs
- TimeEnumHelper.cs
- formatter.cs
- ControlCachePolicy.cs
- SplitterEvent.cs
- CTreeGenerator.cs
- ButtonChrome.cs
- CustomError.cs
- CodePropertyReferenceExpression.cs
- WebPartCollection.cs
- SystemDiagnosticsSection.cs
- Header.cs
- XPathPatternBuilder.cs
- InstanceDataCollectionCollection.cs
- CodeIdentifier.cs
- IISMapPath.cs
- objectquery_tresulttype.cs
- FontUnit.cs
- CatchBlock.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SiteMapDataSource.cs
- UpdateException.cs
- DeleteIndexBinder.cs
- WebDisplayNameAttribute.cs
- XmlAtomErrorReader.cs
- BookmarkScopeManager.cs
- ContextBase.cs
- Soap12ServerProtocol.cs
- WindowsPen.cs
- SqlDependency.cs
- XmlSchemaAny.cs
- TextTabProperties.cs
- SafeNativeMethods.cs
- BrushConverter.cs
- _OverlappedAsyncResult.cs
- OneOfTypeConst.cs
- documentsequencetextpointer.cs
- DesignerDataView.cs
- AliasExpr.cs
- IisTraceListener.cs
- RubberbandSelector.cs
- ToolStripHighContrastRenderer.cs
- ConversionHelper.cs
- AddInServer.cs
- NavigatorInvalidBodyAccessException.cs
- PenLineJoinValidation.cs
- controlskin.cs
- TypeResolver.cs
- SrgsRuleRef.cs
- MissingMemberException.cs
- InheritanceAttribute.cs
- DurationConverter.cs
- PageCodeDomTreeGenerator.cs
- QueryException.cs
- IsolatedStorageFileStream.cs
- NumberFunctions.cs
- TableItemStyle.cs
- Marshal.cs
- EmbeddedMailObjectsCollection.cs
- RuntimeEnvironment.cs
- UnsafeNativeMethods.cs
- ReverseQueryOperator.cs
- XmlAtomicValue.cs
- Attributes.cs
- Viewport2DVisual3D.cs
- HostedHttpTransportManager.cs
- FileDialog.cs
- ProtectedConfiguration.cs
- AVElementHelper.cs
- PlanCompiler.cs
- QueryOutputWriterV1.cs
- FunctionDetailsReader.cs