Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HScrollBar.cs
- ellipse.cs
- XmlSchemaAnyAttribute.cs
- XmlSchemaExporter.cs
- TextBreakpoint.cs
- InstanceDataCollection.cs
- MemoryStream.cs
- DEREncoding.cs
- ClientOptions.cs
- FlowLayoutPanel.cs
- ToggleButtonAutomationPeer.cs
- PbrsForward.cs
- TraceUtility.cs
- ScriptReference.cs
- InertiaExpansionBehavior.cs
- SendActivityValidator.cs
- WpfMemberInvoker.cs
- SelectionEditor.cs
- SqlDataRecord.cs
- UnsafeNativeMethods.cs
- DataGridAutoFormatDialog.cs
- StorageInfo.cs
- WebPartEditorOkVerb.cs
- LayoutTableCell.cs
- SQLInt32Storage.cs
- DocumentGridPage.cs
- WindowsFormsSectionHandler.cs
- SectionVisual.cs
- ProvideValueServiceProvider.cs
- DataGridAutomationPeer.cs
- DbProviderFactoriesConfigurationHandler.cs
- ZipIORawDataFileBlock.cs
- ChooseAction.cs
- datacache.cs
- InvalidOperationException.cs
- ScriptingSectionGroup.cs
- Delay.cs
- IndexOutOfRangeException.cs
- ObjectDataProvider.cs
- InstancePersistenceException.cs
- MarginCollapsingState.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DrawingState.cs
- WorkflowHostingEndpoint.cs
- PropertyIDSet.cs
- TreeBuilderBamlTranslator.cs
- NullToBooleanConverter.cs
- MdiWindowListStrip.cs
- Inline.cs
- Aggregates.cs
- TrackingProfile.cs
- ActivityBindForm.cs
- SqlDependencyUtils.cs
- MdbDataFileEditor.cs
- RsaSecurityKey.cs
- SafeReversePInvokeHandle.cs
- HitTestDrawingContextWalker.cs
- OdbcUtils.cs
- VariableQuery.cs
- MeshGeometry3D.cs
- SessionParameter.cs
- RotationValidation.cs
- MinMaxParagraphWidth.cs
- SystemResources.cs
- MemoryStream.cs
- ISessionStateStore.cs
- Bezier.cs
- SerTrace.cs
- Double.cs
- StrongTypingException.cs
- ChameleonKey.cs
- SortQuery.cs
- XmlDownloadManager.cs
- XmlSortKey.cs
- DecoderBestFitFallback.cs
- Comparer.cs
- RegexCaptureCollection.cs
- Matrix3DStack.cs
- ImageAnimator.cs
- CharKeyFrameCollection.cs
- storepermission.cs
- SpellCheck.cs
- _Win32.cs
- DbParameterCollectionHelper.cs
- ConfigXmlAttribute.cs
- PointAnimationUsingPath.cs
- StringWriter.cs
- DrawingCollection.cs
- JsonByteArrayDataContract.cs
- StringSource.cs
- Itemizer.cs
- OracleRowUpdatedEventArgs.cs
- WindowsListViewGroupSubsetLink.cs
- XpsS0ValidatingLoader.cs
- LocalizeDesigner.cs
- ADConnectionHelper.cs
- TargetConverter.cs
- RolePrincipal.cs
- ServerValidateEventArgs.cs
- NotImplementedException.cs