Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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)); } } } } // 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
- IgnoreDataMemberAttribute.cs
- CodeMethodReturnStatement.cs
- httpstaticobjectscollection.cs
- ConnectionInterfaceCollection.cs
- OutputCacheProfile.cs
- WebPartAuthorizationEventArgs.cs
- SyndicationDeserializer.cs
- X509RecipientCertificateClientElement.cs
- ClearTypeHintValidation.cs
- PassportPrincipal.cs
- NativeMethodsOther.cs
- TimeSpanValidator.cs
- XsdCachingReader.cs
- DbModificationCommandTree.cs
- UserControlAutomationPeer.cs
- XmlArrayItemAttributes.cs
- AssociatedControlConverter.cs
- WorkflowInspectionServices.cs
- BitmapEffectvisualstate.cs
- WebConfigurationManager.cs
- QueryModel.cs
- ListMarkerLine.cs
- FileVersion.cs
- infer.cs
- OrderedEnumerableRowCollection.cs
- LogRecordSequence.cs
- RestHandler.cs
- Substitution.cs
- Rfc2898DeriveBytes.cs
- HotSpotCollection.cs
- clipboard.cs
- XMLDiffLoader.cs
- WebBrowserHelper.cs
- Rfc2898DeriveBytes.cs
- TaiwanCalendar.cs
- ButtonField.cs
- PagesChangedEventArgs.cs
- XmlAttributeProperties.cs
- SnapLine.cs
- ListViewItem.cs
- BamlVersionHeader.cs
- DropDownButton.cs
- WebPartConnectionsConfigureVerb.cs
- login.cs
- GridViewSelectEventArgs.cs
- Descriptor.cs
- KeyFrames.cs
- UnmanagedMemoryStream.cs
- TableItemStyle.cs
- PreparingEnlistment.cs
- RectangleGeometry.cs
- ReceiveActivityDesignerTheme.cs
- SecurityHeaderLayout.cs
- PeerCollaboration.cs
- DataListItem.cs
- ThemeInfoAttribute.cs
- ListViewTableRow.cs
- RuntimeHelpers.cs
- WindowsListView.cs
- ResizeBehavior.cs
- SQLInt64Storage.cs
- ListViewHitTestInfo.cs
- ImageMap.cs
- ModelVisual3D.cs
- Vector3DValueSerializer.cs
- XPathNodePointer.cs
- Panel.cs
- Pen.cs
- SessionIDManager.cs
- Enlistment.cs
- EntityContainerAssociationSetEnd.cs
- OdbcError.cs
- Attachment.cs
- ListViewUpdatedEventArgs.cs
- StateItem.cs
- TrackingStringDictionary.cs
- LabelAutomationPeer.cs
- ProfileGroupSettingsCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- FamilyMap.cs
- ReaderWriterLock.cs
- CfgSemanticTag.cs
- CustomGrammar.cs
- HttpCacheVary.cs
- PerspectiveCamera.cs
- RolePrincipal.cs
- ExtenderProvidedPropertyAttribute.cs
- PackUriHelper.cs
- HttpListenerException.cs
- KeyValueConfigurationCollection.cs
- HostingEnvironmentWrapper.cs
- Logging.cs
- MailWriter.cs
- DataContractJsonSerializer.cs
- DataGridViewElement.cs
- HMACSHA384.cs
- ReversePositionQuery.cs
- EntityDesignerBuildProvider.cs
- EditorPartCollection.cs
- RangeValuePattern.cs