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
- DesignerCategoryAttribute.cs
- ItemCheckEvent.cs
- CalendarButtonAutomationPeer.cs
- UrlAuthorizationModule.cs
- CommandBinding.cs
- ClientConfigurationSystem.cs
- PrimitiveOperationFormatter.cs
- GridViewSortEventArgs.cs
- ConfigXmlCDataSection.cs
- ThousandthOfEmRealDoubles.cs
- Line.cs
- StylusPointPropertyInfo.cs
- SoapRpcMethodAttribute.cs
- DataGridToolTip.cs
- FontEmbeddingManager.cs
- DBNull.cs
- MenuAdapter.cs
- StatusBarPanel.cs
- WebBrowserUriTypeConverter.cs
- SqlFunctionAttribute.cs
- Flattener.cs
- CategoryGridEntry.cs
- XsltCompileContext.cs
- LinqDataSourceEditData.cs
- CodeMethodMap.cs
- SafeCertificateStore.cs
- BlobPersonalizationState.cs
- ConnectionsZone.cs
- ScaleTransform.cs
- Deserializer.cs
- StoreAnnotationsMap.cs
- ControlValuePropertyAttribute.cs
- MetabaseSettingsIis7.cs
- XsltOutput.cs
- ProtocolsConfigurationEntry.cs
- GeneratedCodeAttribute.cs
- MissingFieldException.cs
- SqlNodeAnnotation.cs
- TrackingMemoryStreamFactory.cs
- ButtonBaseAutomationPeer.cs
- WebSysDisplayNameAttribute.cs
- DataGridViewSortCompareEventArgs.cs
- GACMembershipCondition.cs
- IPEndPoint.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- WebUtil.cs
- BlurBitmapEffect.cs
- TiffBitmapDecoder.cs
- MediaSystem.cs
- Select.cs
- Scene3D.cs
- IteratorFilter.cs
- Triplet.cs
- _MultipleConnectAsync.cs
- ToolStripItemDesigner.cs
- DataGridParentRows.cs
- NamespaceCollection.cs
- webbrowsersite.cs
- BulletDecorator.cs
- CursorConverter.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- CodeCastExpression.cs
- NavigationEventArgs.cs
- DBAsyncResult.cs
- ListViewGroupItemCollection.cs
- MasterPageBuildProvider.cs
- ExecutionContext.cs
- CustomAttribute.cs
- ArrayWithOffset.cs
- KerberosTicketHashIdentifierClause.cs
- PopupRoot.cs
- DbProviderFactories.cs
- DataServiceRequest.cs
- FixedHighlight.cs
- SqlProcedureAttribute.cs
- SmiGettersStream.cs
- MachineKeySection.cs
- Throw.cs
- RSAPKCS1SignatureFormatter.cs
- RouteParametersHelper.cs
- Misc.cs
- DataGridViewRowConverter.cs
- RequestCachingSection.cs
- DateTimeFormat.cs
- SqlXmlStorage.cs
- DictionaryEntry.cs
- ToolZone.cs
- ApplicationId.cs
- CodeFieldReferenceExpression.cs
- Container.cs
- DataRow.cs
- TagPrefixInfo.cs
- TextBoxView.cs
- WebColorConverter.cs
- HostSecurityManager.cs
- SaveFileDialog.cs
- JsonFormatGeneratorStatics.cs
- FamilyMap.cs
- ToolStripDropDownClosedEventArgs.cs
- DataException.cs