Code:
/ DotNET / DotNET / 8.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
- Types.cs
- FileDialog.cs
- ToolStripComboBox.cs
- SerializationInfo.cs
- ForwardPositionQuery.cs
- TransactionManager.cs
- OdbcPermission.cs
- ClientSideProviderDescription.cs
- Quaternion.cs
- AnimationException.cs
- DataBindingExpressionBuilder.cs
- SelectorItemAutomationPeer.cs
- SqlGenerator.cs
- SecurityHelper.cs
- ExpressionBuilderCollection.cs
- PenThread.cs
- BeginEvent.cs
- AdornedElementPlaceholder.cs
- MetadataArtifactLoaderFile.cs
- HwndProxyElementProvider.cs
- WebControl.cs
- FlowchartDesigner.xaml.cs
- AppDomainFactory.cs
- SharedStatics.cs
- ModuleBuilderData.cs
- ListControlConvertEventArgs.cs
- SelectionItemPattern.cs
- RequestResponse.cs
- NonceCache.cs
- HttpValueCollection.cs
- Thumb.cs
- MediaElement.cs
- HtmlContainerControl.cs
- TagPrefixInfo.cs
- SelectionPatternIdentifiers.cs
- XPathBuilder.cs
- streamingZipPartStream.cs
- DecimalAnimation.cs
- DataGridAddNewRow.cs
- RegexTree.cs
- LinkConverter.cs
- RunWorkerCompletedEventArgs.cs
- LoadRetryConstantStrategy.cs
- RequestCacheEntry.cs
- JsonFormatGeneratorStatics.cs
- State.cs
- ManifestSignedXml.cs
- ProcessHostMapPath.cs
- EntityTemplateFactory.cs
- HostingEnvironmentWrapper.cs
- ApplicationDirectory.cs
- MarkerProperties.cs
- RunInstallerAttribute.cs
- TextServicesHost.cs
- SqlCommand.cs
- GenericPrincipal.cs
- DependencyObjectValidator.cs
- EncoderExceptionFallback.cs
- Rotation3D.cs
- LogRecordSequence.cs
- RadialGradientBrush.cs
- TdsParameterSetter.cs
- FillBehavior.cs
- CursorInteropHelper.cs
- EntityConnectionStringBuilderItem.cs
- MultipartIdentifier.cs
- DataViewManagerListItemTypeDescriptor.cs
- SQLGuidStorage.cs
- NamedPermissionSet.cs
- Column.cs
- CollectionDataContract.cs
- OleCmdHelper.cs
- ScriptMethodAttribute.cs
- UdpDiscoveryEndpointElement.cs
- PassportAuthenticationEventArgs.cs
- DataGridViewCellStyleConverter.cs
- AccessibilityHelperForVista.cs
- DesignerActionUIService.cs
- HttpStreamMessage.cs
- StylusDownEventArgs.cs
- ExtensionFile.cs
- FormClosedEvent.cs
- IsolationInterop.cs
- CustomErrorCollection.cs
- LinearQuaternionKeyFrame.cs
- NameValueCollection.cs
- VSDExceptions.cs
- AutomationAttributeInfo.cs
- ClientScriptManager.cs
- UshortList2.cs
- NavigationService.cs
- LowerCaseStringConverter.cs
- GlyphRun.cs
- DbgUtil.cs
- EdmConstants.cs
- DataGridColumnEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- SecurityTokenRequirement.cs
- SpellerStatusTable.cs
- SQLBinary.cs