Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- Clock.cs
- DataGridViewToolTip.cs
- AesCryptoServiceProvider.cs
- EntityDataSourceDesignerHelper.cs
- Rule.cs
- LockedActivityGlyph.cs
- AlignmentYValidation.cs
- VBCodeProvider.cs
- ContactManager.cs
- NumericPagerField.cs
- SecurityDocument.cs
- GPPOINTF.cs
- Thumb.cs
- CodeSnippetStatement.cs
- AnnotationComponentManager.cs
- SafeNativeMethods.cs
- WebEventCodes.cs
- DocComment.cs
- HMACSHA256.cs
- HttpCapabilitiesBase.cs
- TreeNode.cs
- RealProxy.cs
- Graph.cs
- ConsumerConnectionPoint.cs
- Socket.cs
- InheritanceAttribute.cs
- entitydatasourceentitysetnameconverter.cs
- brushes.cs
- ChildrenQuery.cs
- PolyBezierSegment.cs
- EntityTypeEmitter.cs
- HashSetEqualityComparer.cs
- Part.cs
- DbParameterCollectionHelper.cs
- RtfControls.cs
- LinearKeyFrames.cs
- AsyncPostBackErrorEventArgs.cs
- SchemaCollectionCompiler.cs
- TextBoxAutoCompleteSourceConverter.cs
- ApplicationFileParser.cs
- HtmlPageAdapter.cs
- wmiprovider.cs
- ClientBuildManager.cs
- SafeHandles.cs
- PersistChildrenAttribute.cs
- EnumConverter.cs
- ChannelSettingsElement.cs
- XamlWriter.cs
- HighlightVisual.cs
- MatrixStack.cs
- XhtmlTextWriter.cs
- TrimSurroundingWhitespaceAttribute.cs
- WSDualHttpBindingElement.cs
- DBCommandBuilder.cs
- LOSFormatter.cs
- TdsParserHelperClasses.cs
- MultiBinding.cs
- DSASignatureDeformatter.cs
- TextElementEditingBehaviorAttribute.cs
- DateTime.cs
- CSharpCodeProvider.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlBufferedByteStreamReader.cs
- XmlUtf8RawTextWriter.cs
- Pair.cs
- CacheDependency.cs
- sortedlist.cs
- XmlSerializerAssemblyAttribute.cs
- AssemblyResourceLoader.cs
- WebPartConnectionsCancelEventArgs.cs
- BoolLiteral.cs
- SkewTransform.cs
- TerminatorSinks.cs
- MaterialGroup.cs
- RegistryKey.cs
- SeverityFilter.cs
- BinaryParser.cs
- ValidatorCollection.cs
- TypeUsageBuilder.cs
- ZipIOLocalFileHeader.cs
- TableRow.cs
- AuthenticationModuleElementCollection.cs
- JsonWriter.cs
- ProxyHelper.cs
- XamlLoadErrorInfo.cs
- ProcessHost.cs
- ArrayWithOffset.cs
- ImportDesigner.xaml.cs
- FileLogRecordEnumerator.cs
- PreservationFileReader.cs
- StringConcat.cs
- ScriptControlManager.cs
- MSAAWinEventWrap.cs
- UpdateEventArgs.cs
- ContractType.cs
- ConstraintCollection.cs
- ToolboxItemAttribute.cs
- NavigateEvent.cs
- RunClient.cs
- GestureRecognizer.cs