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
- CompilerScopeManager.cs
- Collection.cs
- DESCryptoServiceProvider.cs
- ModuleElement.cs
- ObjectSpanRewriter.cs
- InternalConfigSettingsFactory.cs
- SoapMessage.cs
- SignatureToken.cs
- PowerModeChangedEventArgs.cs
- FormView.cs
- XamlSerializerUtil.cs
- CodeObject.cs
- LiteralText.cs
- ReferentialConstraint.cs
- IisNotInstalledException.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TypeSchema.cs
- XmlValidatingReaderImpl.cs
- PerfProviderCollection.cs
- WaitForChangedResult.cs
- LockedActivityGlyph.cs
- StreamAsIStream.cs
- FixUp.cs
- TextUtf8RawTextWriter.cs
- CounterSetInstance.cs
- AddInControllerImpl.cs
- ValidationVisibilityAttribute.cs
- WebPartAuthorizationEventArgs.cs
- IntMinMaxAggregationOperator.cs
- DataFormats.cs
- SQlBooleanStorage.cs
- TextElementEnumerator.cs
- SqlTransaction.cs
- AudioFormatConverter.cs
- WorkBatch.cs
- SystemException.cs
- AuthenticationService.cs
- EnumerableCollectionView.cs
- MemoryRecordBuffer.cs
- MimeXmlReflector.cs
- BaseDataListPage.cs
- SignalGate.cs
- ExtensionQuery.cs
- XmlSchemaElement.cs
- RemotingConfigParser.cs
- ParserStreamGeometryContext.cs
- Clock.cs
- MissingFieldException.cs
- Vector3DCollectionConverter.cs
- SequentialUshortCollection.cs
- BaseConfigurationRecord.cs
- CollectionsUtil.cs
- GradientBrush.cs
- TimeoutValidationAttribute.cs
- IndexedSelectQueryOperator.cs
- StateDesigner.CommentLayoutGlyph.cs
- BoolExpr.cs
- MetadataSerializer.cs
- PrivilegeNotHeldException.cs
- AppDomainProtocolHandler.cs
- DataGridViewCellValueEventArgs.cs
- XXXInfos.cs
- DependencyPropertyHelper.cs
- LineServicesCallbacks.cs
- SettingsSection.cs
- SmtpClient.cs
- MonthCalendar.cs
- RenderData.cs
- QueryStatement.cs
- BaseCAMarshaler.cs
- QueryReaderSettings.cs
- EngineSite.cs
- SelectedGridItemChangedEvent.cs
- ProviderManager.cs
- ResXResourceSet.cs
- ContractInstanceProvider.cs
- DataServiceCollectionOfT.cs
- StyleHelper.cs
- ByteStream.cs
- MessageAction.cs
- CompilerLocalReference.cs
- IFlowDocumentViewer.cs
- ScriptReference.cs
- SectionUpdates.cs
- PageEventArgs.cs
- UntrustedRecipientException.cs
- LicFileLicenseProvider.cs
- WebPartConnectionsCloseVerb.cs
- glyphs.cs
- KerberosTokenFactoryCredential.cs
- DataGridHelper.cs
- WebBrowserContainer.cs
- future.cs
- Socket.cs
- CheckoutException.cs
- DiffuseMaterial.cs
- ColumnResult.cs
- PartBasedPackageProperties.cs
- TraceHwndHost.cs
- Icon.cs