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
- StatusBarPanel.cs
- Int32Storage.cs
- xsdvalidator.cs
- ColorConverter.cs
- InProcStateClientManager.cs
- SafeNativeMethods.cs
- TableLayout.cs
- SHA1CryptoServiceProvider.cs
- SQLMembershipProvider.cs
- PackWebRequest.cs
- FormsIdentity.cs
- Model3D.cs
- Formatter.cs
- LicenseContext.cs
- GrammarBuilder.cs
- XPathNode.cs
- MessageProperties.cs
- BreakRecordTable.cs
- StylusPlugin.cs
- ISAPIRuntime.cs
- PageThemeParser.cs
- Point.cs
- OlePropertyStructs.cs
- MatrixAnimationUsingPath.cs
- Schedule.cs
- WindowsListViewGroup.cs
- DeploymentExceptionMapper.cs
- DebugHandleTracker.cs
- BatchParser.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HttpSysSettings.cs
- HttpFileCollection.cs
- ObjectIDGenerator.cs
- HexParser.cs
- DPTypeDescriptorContext.cs
- COAUTHINFO.cs
- ItemsControl.cs
- TextRunProperties.cs
- X509ChainElement.cs
- InvalidCommandTreeException.cs
- RouteItem.cs
- MarginsConverter.cs
- BufferCache.cs
- Composition.cs
- SQLInt32Storage.cs
- SoapExtensionReflector.cs
- InputBuffer.cs
- RegexWorker.cs
- DetailsViewInsertEventArgs.cs
- MatchAttribute.cs
- EncodingInfo.cs
- CopyAttributesAction.cs
- DependsOnAttribute.cs
- MiniAssembly.cs
- DecodeHelper.cs
- SemanticAnalyzer.cs
- ZoneMembershipCondition.cs
- AppSettingsSection.cs
- Signature.cs
- ComponentResourceManager.cs
- CAGDesigner.cs
- SerializerDescriptor.cs
- RunWorkerCompletedEventArgs.cs
- PackagePart.cs
- XmlNodeComparer.cs
- PeerName.cs
- ResXFileRef.cs
- LogicalCallContext.cs
- DataServiceQueryContinuation.cs
- EnumUnknown.cs
- XmlSerializerFactory.cs
- ContentElement.cs
- DataPagerField.cs
- Single.cs
- SByteStorage.cs
- ObjectIDGenerator.cs
- Matrix3D.cs
- DbXmlEnabledProviderManifest.cs
- XamlSerializer.cs
- AutomationTextAttribute.cs
- CharacterString.cs
- XamlSerializer.cs
- PerformanceCounterPermissionEntry.cs
- WebPartMovingEventArgs.cs
- OleDbPermission.cs
- InstalledVoice.cs
- cookiecontainer.cs
- CompilationLock.cs
- MimeAnyImporter.cs
- HostingEnvironmentSection.cs
- CursorConverter.cs
- BorderSidesEditor.cs
- DataBoundControlActionList.cs
- ClientProxyGenerator.cs
- EntityWrapper.cs
- BrowserDefinition.cs
- BoundPropertyEntry.cs
- HyperLinkField.cs
- ControlBuilderAttribute.cs
- BlockUIContainer.cs