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
- XPathExpr.cs
- PropertyCondition.cs
- SystemWebSectionGroup.cs
- SqlErrorCollection.cs
- Faults.cs
- MenuRendererClassic.cs
- SizeAnimationClockResource.cs
- TypeForwardedToAttribute.cs
- InputScopeManager.cs
- GridView.cs
- SizeConverter.cs
- Quack.cs
- SafeNativeHandle.cs
- ClipboardProcessor.cs
- SplitterEvent.cs
- ConstraintCollection.cs
- RubberbandSelector.cs
- DbBuffer.cs
- HttpPostedFile.cs
- GridView.cs
- DbFunctionCommandTree.cs
- ExpressionLexer.cs
- TimeZoneNotFoundException.cs
- CroppedBitmap.cs
- VirtualizedItemProviderWrapper.cs
- RemotingException.cs
- TargetControlTypeCache.cs
- Margins.cs
- CqlIdentifiers.cs
- OptionalMessageQuery.cs
- WebConfigurationHost.cs
- Page.cs
- TextFormatterHost.cs
- DbParameterCollection.cs
- GradientStopCollection.cs
- OleDbEnumerator.cs
- TagPrefixCollection.cs
- X509CertificateValidator.cs
- CacheRequest.cs
- FormViewDesigner.cs
- ListViewCancelEventArgs.cs
- BinaryKeyIdentifierClause.cs
- ResponseStream.cs
- HttpConfigurationSystem.cs
- WebPartDisplayModeEventArgs.cs
- RemotingException.cs
- Bitmap.cs
- SystemInfo.cs
- ButtonBaseAutomationPeer.cs
- MessageBodyDescription.cs
- SafeThemeHandle.cs
- ImageFormat.cs
- ThousandthOfEmRealDoubles.cs
- AsyncPostBackErrorEventArgs.cs
- CodeGenerationManager.cs
- DependencyPropertyAttribute.cs
- SessionState.cs
- HtmlSelect.cs
- PEFileEvidenceFactory.cs
- AttachmentCollection.cs
- ComponentResourceManager.cs
- SmiTypedGetterSetter.cs
- FileDialogCustomPlace.cs
- AppSettingsReader.cs
- XmlDownloadManager.cs
- HttpRuntimeSection.cs
- DataGridViewSelectedCellCollection.cs
- SqlTrackingQuery.cs
- KnownAssemblyEntry.cs
- ProxyGenerationError.cs
- ObjectParameterCollection.cs
- DecimalConverter.cs
- HostProtectionException.cs
- DefaultPrintController.cs
- MessageQueueConverter.cs
- odbcmetadatacolumnnames.cs
- TimeEnumHelper.cs
- ImageField.cs
- HwndSourceParameters.cs
- XPathItem.cs
- X509Chain.cs
- CommandLibraryHelper.cs
- ActiveXHelper.cs
- XmlIgnoreAttribute.cs
- UIElementAutomationPeer.cs
- RuleConditionDialog.cs
- RichTextBoxConstants.cs
- ConfigXmlText.cs
- ImplicitInputBrush.cs
- Attributes.cs
- RecordConverter.cs
- DataControlFieldHeaderCell.cs
- diagnosticsswitches.cs
- LingerOption.cs
- BaseHashHelper.cs
- TextEditor.cs
- MappingSource.cs
- RegistrySecurity.cs
- SQLDouble.cs
- ByteStreamBufferedMessageData.cs