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
- Delegate.cs
- QueryableFilterRepeater.cs
- MemoryResponseElement.cs
- ElementMarkupObject.cs
- StyleCollection.cs
- XmlJsonWriter.cs
- AlignmentXValidation.cs
- TcpConnectionPoolSettings.cs
- SecUtil.cs
- AppSettingsExpressionBuilder.cs
- ServiceDescriptionReflector.cs
- Calendar.cs
- Listen.cs
- SqlCachedBuffer.cs
- OleDbFactory.cs
- SmiEventSink.cs
- RedirectionProxy.cs
- DesignerActionUI.cs
- ToolStripOverflowButton.cs
- TraceUtils.cs
- AmbientLight.cs
- DesignerLoader.cs
- ThreadStateException.cs
- BitmapEffect.cs
- JoinElimination.cs
- Translator.cs
- LayoutTableCell.cs
- UniqueConstraint.cs
- LiteralControl.cs
- UriSection.cs
- HttpBufferlessInputStream.cs
- DbBuffer.cs
- COM2ColorConverter.cs
- AnonymousIdentificationModule.cs
- WinFormsUtils.cs
- CodeGroup.cs
- WinInetCache.cs
- ModelTreeEnumerator.cs
- HostingEnvironmentException.cs
- AsymmetricKeyExchangeDeformatter.cs
- HtmlWindow.cs
- ProjectionPruner.cs
- Pts.cs
- InvalidCastException.cs
- DoubleLinkList.cs
- NegatedCellConstant.cs
- RepeaterItemCollection.cs
- ArraySet.cs
- AcceleratedTokenAuthenticator.cs
- MenuItem.cs
- ProfileBuildProvider.cs
- XmlMemberMapping.cs
- OracleParameterCollection.cs
- TextFormattingConverter.cs
- CurrentChangingEventManager.cs
- XmlILTrace.cs
- ReferenceConverter.cs
- DataGridViewColumnHeaderCell.cs
- RowParagraph.cs
- SqlFactory.cs
- ActivatableWorkflowsQueryResult.cs
- COM2Properties.cs
- JournalNavigationScope.cs
- Accessors.cs
- CroppedBitmap.cs
- WebPartMenuStyle.cs
- MessageSecurityOverTcp.cs
- MediaElementAutomationPeer.cs
- FloatUtil.cs
- ScriptResourceAttribute.cs
- CheckBoxFlatAdapter.cs
- WSSecurityXXX2005.cs
- TemplateApplicationHelper.cs
- Slider.cs
- ListViewItemSelectionChangedEvent.cs
- ReceiveSecurityHeaderEntry.cs
- RelatedView.cs
- CollectionViewGroup.cs
- PeerTransportBindingElement.cs
- FileLoadException.cs
- AvTraceFormat.cs
- InternalConfigSettingsFactory.cs
- Comparer.cs
- CodeDirectiveCollection.cs
- WebConvert.cs
- PanelContainerDesigner.cs
- SessionStateItemCollection.cs
- WebPartDisplayModeEventArgs.cs
- Metafile.cs
- DetailsViewUpdatedEventArgs.cs
- ParameterToken.cs
- HtmlAnchor.cs
- MailWebEventProvider.cs
- ReflectionUtil.cs
- bindurihelper.cs
- UserNameSecurityTokenAuthenticator.cs
- TableItemStyle.cs
- SecurityTokenParameters.cs
- XmlUtilWriter.cs
- RawContentTypeMapper.cs