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
- Region.cs
- UriParserTemplates.cs
- DataGridViewMethods.cs
- PackageProperties.cs
- TypefaceCollection.cs
- HelpInfo.cs
- Type.cs
- PersianCalendar.cs
- AutomationPatternInfo.cs
- RenderingEventArgs.cs
- ErasingStroke.cs
- Messages.cs
- FieldCollectionEditor.cs
- HttpProfileGroupBase.cs
- HtmlFormWrapper.cs
- UpdateInfo.cs
- Attachment.cs
- ServerValidateEventArgs.cs
- Double.cs
- DesignerView.xaml.cs
- Select.cs
- ListMarkerSourceInfo.cs
- MappingItemCollection.cs
- DbDataSourceEnumerator.cs
- ModelTreeEnumerator.cs
- DataRelationPropertyDescriptor.cs
- PersistChildrenAttribute.cs
- TextEditor.cs
- ThreadWorkerController.cs
- ContextMenuStripGroupCollection.cs
- UInt64Storage.cs
- TreeViewEvent.cs
- ObjectParameterCollection.cs
- HybridDictionary.cs
- CallbackValidatorAttribute.cs
- EllipseGeometry.cs
- WebPartTransformer.cs
- XmlStringTable.cs
- HttpCacheParams.cs
- TrackingDataItem.cs
- IsolatedStorageException.cs
- XhtmlBasicControlAdapter.cs
- FormsIdentity.cs
- InstanceContextMode.cs
- EncoderParameter.cs
- WeakEventManager.cs
- WindowsServiceCredential.cs
- ExtensionSimplifierMarkupObject.cs
- XmlSchemaAnnotation.cs
- Int64AnimationUsingKeyFrames.cs
- MultipleCopiesCollection.cs
- ComPlusContractBehavior.cs
- CompilerCollection.cs
- InternalSafeNativeMethods.cs
- SharedPerformanceCounter.cs
- OrderedDictionary.cs
- X509ClientCertificateCredentialsElement.cs
- AssemblySettingAttributes.cs
- exports.cs
- GPRECT.cs
- TokenizerHelper.cs
- PageCatalogPart.cs
- DataServiceRequest.cs
- ApplyTemplatesAction.cs
- ByteStorage.cs
- FixedSOMPageConstructor.cs
- CustomLineCap.cs
- ModelServiceImpl.cs
- ErrorFormatter.cs
- SmtpFailedRecipientException.cs
- PostBackOptions.cs
- HatchBrush.cs
- SelectorAutomationPeer.cs
- ObjectHelper.cs
- SafeRightsManagementPubHandle.cs
- ZoneMembershipCondition.cs
- ChainOfDependencies.cs
- UITypeEditor.cs
- PageParserFilter.cs
- ChtmlTextWriter.cs
- CookieParameter.cs
- CombinedHttpChannel.cs
- OrderedDictionary.cs
- FixedHyperLink.cs
- Activity.cs
- TrackingServices.cs
- DeferredReference.cs
- HttpListener.cs
- ByteAnimation.cs
- Slider.cs
- DetailsViewUpdateEventArgs.cs
- ColumnClickEvent.cs
- ProxyWebPartManager.cs
- WhiteSpaceTrimStringConverter.cs
- DataErrorValidationRule.cs
- WsdlInspector.cs
- ContentElement.cs
- TabControlEvent.cs
- CodeDefaultValueExpression.cs
- MergeLocalizationDirectives.cs