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
- mil_sdk_version.cs
- RecordConverter.cs
- MaskedTextProvider.cs
- DocumentOutline.cs
- InternalsVisibleToAttribute.cs
- AsyncOperation.cs
- DateTimeEditor.cs
- FormsAuthenticationEventArgs.cs
- DictionaryManager.cs
- UserInitiatedRoutedEventPermission.cs
- Profiler.cs
- RegexInterpreter.cs
- ExecutedRoutedEventArgs.cs
- hresults.cs
- _emptywebproxy.cs
- ValidationHelpers.cs
- ButtonPopupAdapter.cs
- UnsafeNativeMethodsTablet.cs
- SettingsBase.cs
- PasswordPropertyTextAttribute.cs
- SourceFilter.cs
- XmlUtil.cs
- DomNameTable.cs
- HttpAsyncResult.cs
- AdornerDecorator.cs
- ReflectPropertyDescriptor.cs
- PeerNameResolver.cs
- EventProviderWriter.cs
- ClusterSafeNativeMethods.cs
- ToolStripInSituService.cs
- SqlEnums.cs
- ZoneIdentityPermission.cs
- Listbox.cs
- SmiMetaData.cs
- ByteKeyFrameCollection.cs
- PasswordBox.cs
- DependencyPropertyValueSerializer.cs
- QuaternionAnimation.cs
- MarginCollapsingState.cs
- Misc.cs
- ObjectItemConventionAssemblyLoader.cs
- DataTrigger.cs
- DocComment.cs
- ellipse.cs
- TTSEngineProxy.cs
- MenuItem.cs
- InfiniteIntConverter.cs
- SafeHandle.cs
- EmptyStringExpandableObjectConverter.cs
- DockAndAnchorLayout.cs
- objectresult_tresulttype.cs
- PrivateFontCollection.cs
- DeflateEmulationStream.cs
- _StreamFramer.cs
- CompensatableSequenceActivity.cs
- NotImplementedException.cs
- Select.cs
- CredentialCache.cs
- TableLayoutStyleCollection.cs
- StatusBarDrawItemEvent.cs
- ScrollData.cs
- NetMsmqSecurityElement.cs
- DbConnectionPoolGroup.cs
- DataGridViewRowsRemovedEventArgs.cs
- TypeLibConverter.cs
- Misc.cs
- Timeline.cs
- GenericTransactionFlowAttribute.cs
- CacheMemory.cs
- RtType.cs
- invalidudtexception.cs
- TagPrefixInfo.cs
- TextTreeInsertElementUndoUnit.cs
- ItemCheckedEvent.cs
- Panel.cs
- DesignTimeData.cs
- ListBoxDesigner.cs
- PropertyPath.cs
- GeometryModel3D.cs
- DbMetaDataColumnNames.cs
- ProxyWebPartConnectionCollection.cs
- SystemResourceKey.cs
- AsymmetricAlgorithm.cs
- ListViewGroupItemCollection.cs
- Rotation3D.cs
- DataBinding.cs
- BitmapEffectRenderDataResource.cs
- ServiceHostingEnvironment.cs
- ImageDrawing.cs
- HttpVersion.cs
- RecordManager.cs
- SafeBuffer.cs
- MsmqHostedTransportConfiguration.cs
- XPathNavigatorReader.cs
- CharacterMetrics.cs
- SafeBitVector32.cs
- BufferedReceiveManager.cs
- ModelPerspective.cs
- Vector3D.cs
- EventWaitHandle.cs