Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ModuleBuilder.cs
- WebPartManager.cs
- UnsignedPublishLicense.cs
- ToolStripManager.cs
- BamlRecords.cs
- SqlCachedBuffer.cs
- SafeRightsManagementSessionHandle.cs
- WindowsContainer.cs
- InvalidPropValue.cs
- ProtocolsConfigurationHandler.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- WebPartDisplayModeCollection.cs
- CapabilitiesSection.cs
- EdgeModeValidation.cs
- JsonServiceDocumentSerializer.cs
- Vars.cs
- clipboard.cs
- Avt.cs
- EntityUtil.cs
- ServiceOperationParameter.cs
- BuilderPropertyEntry.cs
- MaskedTextBoxTextEditor.cs
- StateRuntime.cs
- BindingManagerDataErrorEventArgs.cs
- ReservationNotFoundException.cs
- EntryPointNotFoundException.cs
- Size3D.cs
- ListViewInsertionMark.cs
- PingOptions.cs
- GraphicsContainer.cs
- SourceFileBuildProvider.cs
- CollectionChange.cs
- GenericIdentity.cs
- ElementHostPropertyMap.cs
- AddInController.cs
- SchemaTableOptionalColumn.cs
- AstTree.cs
- securitymgrsite.cs
- StructuredType.cs
- StrokeIntersection.cs
- NavigationWindow.cs
- DoubleAnimation.cs
- ScriptRegistrationManager.cs
- PersistenceTypeAttribute.cs
- NGCPageContentCollectionSerializerAsync.cs
- MouseGestureConverter.cs
- SQLUtility.cs
- ConnectionStringsExpressionBuilder.cs
- Vector3DValueSerializer.cs
- ObjectDataSourceWizardForm.cs
- ProcessHostFactoryHelper.cs
- SqlBuilder.cs
- HttpHandler.cs
- TabControlCancelEvent.cs
- UiaCoreApi.cs
- DataRowView.cs
- HtmlElementEventArgs.cs
- ResourcesChangeInfo.cs
- InstanceData.cs
- XmlNamedNodeMap.cs
- ListenDesigner.cs
- FixedSOMFixedBlock.cs
- XmlComplianceUtil.cs
- ForceCopyBuildProvider.cs
- DataGridViewCell.cs
- BaseValidator.cs
- SqlVisitor.cs
- SerializationBinder.cs
- ItemCheckEvent.cs
- RuntimeConfig.cs
- documentsequencetextview.cs
- ValidationHelpers.cs
- LinqDataSourceDeleteEventArgs.cs
- FixedSOMContainer.cs
- XPathMultyIterator.cs
- KnownAssembliesSet.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PngBitmapEncoder.cs
- StylusPointPropertyUnit.cs
- Rotation3D.cs
- TreeNodeCollection.cs
- EdmPropertyAttribute.cs
- ProgressBarAutomationPeer.cs
- SystemShuttingDownException.cs
- AppDomainUnloadedException.cs
- HelpInfo.cs
- PointKeyFrameCollection.cs
- TimeSpan.cs
- CompiledRegexRunner.cs
- PathFigureCollectionValueSerializer.cs
- CroppedBitmap.cs
- TypeBrowserDialog.cs
- ParameterModifier.cs
- QueryConverter.cs
- SecurityException.cs
- WebBrowsableAttribute.cs
- WorkflowDesignerColors.cs
- XmlCodeExporter.cs
- StateWorkerRequest.cs
- PathSegment.cs