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
- CorrelationTokenInvalidatedHandler.cs
- ToolStripContainer.cs
- XmlEnumAttribute.cs
- KeyEventArgs.cs
- QuaternionAnimationBase.cs
- ConfigurationSectionCollection.cs
- QueryAccessibilityHelpEvent.cs
- RemotingSurrogateSelector.cs
- GiveFeedbackEvent.cs
- Renderer.cs
- PeerFlooder.cs
- XamlPoint3DCollectionSerializer.cs
- DropDownList.cs
- HttpDictionary.cs
- Popup.cs
- DesignerTextViewAdapter.cs
- NativeRecognizer.cs
- ScrollChrome.cs
- Hyperlink.cs
- MenuItemCollection.cs
- ThumbAutomationPeer.cs
- CodeArgumentReferenceExpression.cs
- QilReference.cs
- BuildTopDownAttribute.cs
- Model3D.cs
- XamlFilter.cs
- FormViewDeleteEventArgs.cs
- SpotLight.cs
- SourceFilter.cs
- FacetDescription.cs
- DataQuery.cs
- DataPagerCommandEventArgs.cs
- InternalConfigSettingsFactory.cs
- Soap.cs
- MessageContractAttribute.cs
- MessageAction.cs
- XmlDocumentType.cs
- AspNetHostingPermission.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- HttpResponse.cs
- DoubleLinkListEnumerator.cs
- DbConnectionHelper.cs
- HMAC.cs
- DataRelationPropertyDescriptor.cs
- RelatedPropertyManager.cs
- DataRecordInternal.cs
- ClientSponsor.cs
- SafeEventLogWriteHandle.cs
- DataGridViewControlCollection.cs
- HostDesigntimeLicenseContext.cs
- IPGlobalProperties.cs
- xdrvalidator.cs
- XPathAncestorIterator.cs
- ConfigXmlElement.cs
- Attributes.cs
- HandlerFactoryWrapper.cs
- TemplateBuilder.cs
- OleDbCommandBuilder.cs
- XmlAttributeAttribute.cs
- TypeResolver.cs
- RoleManagerModule.cs
- AlternationConverter.cs
- ToolStripSeparator.cs
- AsnEncodedData.cs
- LowerCaseStringConverter.cs
- RuntimeHelpers.cs
- ToolBarButtonClickEvent.cs
- ResXDataNode.cs
- WindowsSolidBrush.cs
- URL.cs
- XmlNodeChangedEventManager.cs
- Hex.cs
- ConfigXmlText.cs
- AnnotationObservableCollection.cs
- ServerValidateEventArgs.cs
- SqlProcedureAttribute.cs
- DataSourceControlBuilder.cs
- HostingPreferredMapPath.cs
- FindCriteriaCD1.cs
- OracleMonthSpan.cs
- XmlSchemaSimpleContentExtension.cs
- HtmlElementErrorEventArgs.cs
- TextBox.cs
- GregorianCalendarHelper.cs
- DispatcherHookEventArgs.cs
- StateBag.cs
- PieceDirectory.cs
- ExpressionBuilderCollection.cs
- DockPattern.cs
- LinearKeyFrames.cs
- EmptyControlCollection.cs
- RegistrySecurity.cs
- DataGridViewIntLinkedList.cs
- RangeContentEnumerator.cs
- RealizationDrawingContextWalker.cs
- _ScatterGatherBuffers.cs
- FixUpCollection.cs
- ScriptModule.cs
- UriScheme.cs
- HtmlImage.cs