Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- InstanceData.cs
- WebPartUserCapability.cs
- WindowsScroll.cs
- BooleanKeyFrameCollection.cs
- ContentDisposition.cs
- MachineKeyConverter.cs
- WebBodyFormatMessageProperty.cs
- ADConnectionHelper.cs
- Wizard.cs
- SqlComparer.cs
- DataServiceClientException.cs
- JavaScriptString.cs
- ConfigXmlWhitespace.cs
- StreamGeometry.cs
- XmlChildNodes.cs
- Figure.cs
- ScrollViewer.cs
- SoapServerMessage.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SubMenuStyleCollection.cs
- DetailsViewInsertedEventArgs.cs
- HttpListenerRequest.cs
- DrawListViewSubItemEventArgs.cs
- TypeBinaryExpression.cs
- ConfigurationSchemaErrors.cs
- ToolStripSystemRenderer.cs
- MailMessageEventArgs.cs
- NavigationWindowAutomationPeer.cs
- ImageButton.cs
- OleTxTransaction.cs
- AsyncWaitHandle.cs
- DockPanel.cs
- Overlapped.cs
- FocusChangedEventArgs.cs
- BaseTemplateParser.cs
- XmlSchemaResource.cs
- AddressAlreadyInUseException.cs
- XmlWriterDelegator.cs
- DataGridView.cs
- ApplicationInterop.cs
- SequentialWorkflowRootDesigner.cs
- precedingquery.cs
- Point3DValueSerializer.cs
- ChangeInterceptorAttribute.cs
- SpecularMaterial.cs
- SHA384.cs
- ToolStripPanelRow.cs
- DesignerTransactionCloseEvent.cs
- DbDataReader.cs
- SecurityHelper.cs
- WorkflowViewElement.cs
- Preprocessor.cs
- GetPageNumberCompletedEventArgs.cs
- CultureMapper.cs
- TreeWalker.cs
- HashCryptoHandle.cs
- newitemfactory.cs
- DataGridViewCellStyleConverter.cs
- Gdiplus.cs
- ValidatorCollection.cs
- QuerySelectOp.cs
- HostingEnvironment.cs
- SiteMapNodeItem.cs
- StringPropertyBuilder.cs
- TextEffect.cs
- MonitoringDescriptionAttribute.cs
- CodeLabeledStatement.cs
- XmlDocumentType.cs
- PeerCredential.cs
- ImmutableCollection.cs
- Model3DGroup.cs
- WebServiceData.cs
- MenuItemCollection.cs
- SurrogateDataContract.cs
- _LazyAsyncResult.cs
- BufferedReadStream.cs
- ReflectionPermission.cs
- MessageFilterTable.cs
- GeometryModel3D.cs
- PartBasedPackageProperties.cs
- CompoundFileStorageReference.cs
- SqlNamer.cs
- SchemaTableColumn.cs
- XmlAtomicValue.cs
- DBDataPermissionAttribute.cs
- WorkflowPageSetupDialog.cs
- RuntimeCompatibilityAttribute.cs
- DiagnosticStrings.cs
- HelpEvent.cs
- HandlerFactoryCache.cs
- DefaultMemberAttribute.cs
- SqlNodeAnnotations.cs
- TogglePattern.cs
- DataGridViewControlCollection.cs
- GifBitmapEncoder.cs
- TabletDeviceInfo.cs
- RuleInfoComparer.cs
- QuotaExceededException.cs
- WebBrowserProgressChangedEventHandler.cs
- DetailsViewDeleteEventArgs.cs