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
- HttpRequestMessageProperty.cs
- OutputWindow.cs
- ProfileModule.cs
- CmsUtils.cs
- HtmlCommandAdapter.cs
- Font.cs
- SQLStringStorage.cs
- CodeAccessSecurityEngine.cs
- WMIInterop.cs
- _DisconnectOverlappedAsyncResult.cs
- MDIWindowDialog.cs
- WindowsFormsLinkLabel.cs
- HijriCalendar.cs
- EventLogEntryCollection.cs
- HtmlTable.cs
- CompletedAsyncResult.cs
- DragCompletedEventArgs.cs
- DbDataSourceEnumerator.cs
- SafePEFileHandle.cs
- SchemaEntity.cs
- ColorContext.cs
- XamlUtilities.cs
- HatchBrush.cs
- FileEnumerator.cs
- XpsTokenContext.cs
- _HTTPDateParse.cs
- EditorPartChrome.cs
- AsymmetricKeyExchangeFormatter.cs
- OperationFormatStyle.cs
- RuntimeCompatibilityAttribute.cs
- RewritingValidator.cs
- FieldBuilder.cs
- TemplateControlCodeDomTreeGenerator.cs
- panel.cs
- VisualStateManager.cs
- DataGridViewTextBoxEditingControl.cs
- Vector.cs
- NestPullup.cs
- ResourceLoader.cs
- XmlText.cs
- CultureSpecificCharacterBufferRange.cs
- CategoryGridEntry.cs
- Attributes.cs
- TableParaClient.cs
- InputMethodStateChangeEventArgs.cs
- Int32KeyFrameCollection.cs
- SymbolDocumentGenerator.cs
- Baml2006ReaderSettings.cs
- TextOutput.cs
- KeyInfo.cs
- AppDomainUnloadedException.cs
- Size3D.cs
- _LocalDataStore.cs
- ADMembershipUser.cs
- PreviewPageInfo.cs
- DocumentXPathNavigator.cs
- KnownTypesHelper.cs
- SiteMapNode.cs
- AllMembershipCondition.cs
- PageRequestManager.cs
- ControlLocalizer.cs
- PrinterUnitConvert.cs
- CollectionViewProxy.cs
- FixedSOMLineRanges.cs
- SessionStateItemCollection.cs
- GenericParameterDataContract.cs
- PathTooLongException.cs
- externdll.cs
- ItemsControlAutomationPeer.cs
- CaseInsensitiveHashCodeProvider.cs
- SafeFileMappingHandle.cs
- DesignerView.Commands.cs
- UnaryQueryOperator.cs
- OLEDB_Enum.cs
- LinkArea.cs
- SelectionItemProviderWrapper.cs
- PeerEndPoint.cs
- DiscoveryDefaults.cs
- XhtmlBasicValidatorAdapter.cs
- TemplateControlCodeDomTreeGenerator.cs
- ExpandSegment.cs
- SmtpCommands.cs
- OperationContextScope.cs
- GroupByQueryOperator.cs
- LicenseException.cs
- QilGeneratorEnv.cs
- Crypto.cs
- GridViewRowEventArgs.cs
- COM2ColorConverter.cs
- DEREncoding.cs
- WinInetCache.cs
- EllipseGeometry.cs
- MembershipPasswordException.cs
- ImagingCache.cs
- Regex.cs
- KeySplineConverter.cs
- WindowsListBox.cs
- WindowsListBox.cs
- EditModeSwitchButton.cs
- MaskInputRejectedEventArgs.cs