Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / UserControlParser.cs / 1 / UserControlParser.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.Security; using System.Security.Permissions; using System.Web.Compilation; using System.Globalization; using System.Web.Caching; /* * Parser for declarative controls */ internal class UserControlParser : TemplateControlParser { private bool _fSharedPartialCaching; internal bool FSharedPartialCaching { get { return _fSharedPartialCaching ; } } // Get default settings from config internal override void ProcessConfigSettings() { base.ProcessConfigSettings(); ApplyBaseType(); } // Get the default baseType from PagesConfig. internal virtual void ApplyBaseType() { if (PagesConfig != null) { if (PagesConfig.UserControlBaseTypeInternal != null) BaseType = PagesConfig.UserControlBaseTypeInternal; } } internal override Type DefaultBaseType { get { return typeof(System.Web.UI.UserControl); } } internal const string defaultDirectiveName = "control"; internal override string DefaultDirectiveName { get { return defaultDirectiveName; } } internal override Type DefaultFileLevelBuilderType { get { return typeof(FileLevelUserControlBuilder); } } internal override RootBuilder CreateDefaultFileLevelBuilder() { return new FileLevelUserControlBuilder(); } /* * Process the contents of the <%@ OutputCache ... %> directive */ internal override void ProcessOutputCacheDirective(string directiveName, IDictionary directive) { string sqlDependency; Util.GetAndRemoveBooleanAttribute(directive, "shared", ref _fSharedPartialCaching); sqlDependency = Util.GetAndRemoveNonEmptyAttribute(directive, "sqldependency"); if (sqlDependency != null) { // Validate the sqldependency attribute SqlCacheDependency.ValidateOutputCacheDependencyString(sqlDependency, false); OutputCacheParameters.SqlDependency = sqlDependency; } base.ProcessOutputCacheDirective(directiveName, directive); } internal override bool FVaryByParamsRequiredOnOutputCache { get { return OutputCacheParameters.VaryByControl == null; } } internal override string UnknownOutputCacheAttributeError { get { return SR.Attr_not_supported_in_ucdirective; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SelectionRangeConverter.cs
- HostedHttpContext.cs
- WhereaboutsReader.cs
- FlowDecisionLabelFeature.cs
- HwndAppCommandInputProvider.cs
- CheckoutException.cs
- JsonFormatWriterGenerator.cs
- CustomActivityDesigner.cs
- MTConfigUtil.cs
- DropShadowEffect.cs
- MaskInputRejectedEventArgs.cs
- RegexBoyerMoore.cs
- RegexFCD.cs
- ThreadStaticAttribute.cs
- cache.cs
- QilNode.cs
- SqlParameter.cs
- DataGridToolTip.cs
- SmtpMail.cs
- Axis.cs
- GenerateTemporaryAssemblyTask.cs
- WebPartEditorApplyVerb.cs
- UrlMapping.cs
- ContractBase.cs
- DescendantOverDescendantQuery.cs
- AxisAngleRotation3D.cs
- Wildcard.cs
- OleDbReferenceCollection.cs
- QuaternionConverter.cs
- ProxyHelper.cs
- Select.cs
- PeerTransportListenAddressConverter.cs
- LinqDataView.cs
- FixedSOMContainer.cs
- Wildcard.cs
- InputGestureCollection.cs
- WSHttpBindingBase.cs
- Utility.cs
- PresentationAppDomainManager.cs
- HtmlToClrEventProxy.cs
- CqlParserHelpers.cs
- EditorPartCollection.cs
- AttributeCollection.cs
- FileNameEditor.cs
- StrokeIntersection.cs
- QueryOutputWriter.cs
- ScalarOps.cs
- WSSecureConversationDec2005.cs
- IgnoreFileBuildProvider.cs
- TreeNodeCollectionEditorDialog.cs
- TerminateSequence.cs
- BooleanFunctions.cs
- HandleCollector.cs
- ParentQuery.cs
- TemplateContent.cs
- ListViewCancelEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- DataSourceNameHandler.cs
- DBParameter.cs
- PageAsyncTask.cs
- InternalConfigEventArgs.cs
- EntityDesignerDataSourceView.cs
- SerializationAttributes.cs
- DPAPIProtectedConfigurationProvider.cs
- Version.cs
- DesignerRegion.cs
- BufferModeSettings.cs
- TrackingWorkflowEventArgs.cs
- SoapParser.cs
- SafePipeHandle.cs
- ChtmlPageAdapter.cs
- XmlObjectSerializerReadContextComplexJson.cs
- OrderByQueryOptionExpression.cs
- CodeBlockBuilder.cs
- MemberMemberBinding.cs
- ToolboxComponentsCreatedEventArgs.cs
- ComplexType.cs
- TextFormatter.cs
- templategroup.cs
- DataTransferEventArgs.cs
- CheckedListBox.cs
- DataGridViewSortCompareEventArgs.cs
- WebServiceClientProxyGenerator.cs
- CfgRule.cs
- counter.cs
- ClientRolePrincipal.cs
- XmlTextAttribute.cs
- TimeManager.cs
- DetailsViewModeEventArgs.cs
- SoapElementAttribute.cs
- BorderGapMaskConverter.cs
- GPPOINTF.cs
- NavigationPropertyEmitter.cs
- MultiBinding.cs
- TypeProvider.cs
- Array.cs
- Errors.cs
- CompilerErrorCollection.cs
- AssemblyAttributes.cs
- ScrollItemPatternIdentifiers.cs