Code:
/ FX-1434 / FX-1434 / 1.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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuAutomationPeer.cs
- PrintingPermission.cs
- XmlEncodedRawTextWriter.cs
- XMLSchema.cs
- SqlAliaser.cs
- XmlTypeMapping.cs
- FamilyCollection.cs
- DashStyle.cs
- Empty.cs
- DatePicker.cs
- SharedMemory.cs
- PointF.cs
- NativeActivityFaultContext.cs
- ScalarConstant.cs
- NavigateEvent.cs
- ProxyWebPartConnectionCollection.cs
- QilUnary.cs
- SecurityContextSecurityTokenAuthenticator.cs
- HttpServerProtocol.cs
- MediaEntryAttribute.cs
- ButtonBase.cs
- QueryCacheEntry.cs
- XmlConvert.cs
- ObjectManager.cs
- Cursor.cs
- NotCondition.cs
- DataContractJsonSerializer.cs
- Automation.cs
- Label.cs
- ColorConvertedBitmap.cs
- NonNullItemCollection.cs
- ServiceThrottlingBehavior.cs
- EncryptedXml.cs
- Ref.cs
- SQLBinary.cs
- InstanceLockTracking.cs
- LinkConverter.cs
- FloaterBaseParagraph.cs
- BitmapFrame.cs
- RepeatInfo.cs
- DataControlLinkButton.cs
- SetIterators.cs
- CommandManager.cs
- XPathItem.cs
- TripleDES.cs
- RayMeshGeometry3DHitTestResult.cs
- FunctionUpdateCommand.cs
- CharacterBufferReference.cs
- SqlDataSourceEnumerator.cs
- MaskedTextBoxDesigner.cs
- GlyphRunDrawing.cs
- Main.cs
- SignatureTargetIdManager.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BinaryFormatter.cs
- SoapSchemaExporter.cs
- ByteStreamMessageEncoder.cs
- XmlNodeChangedEventManager.cs
- Canvas.cs
- PointAnimationUsingKeyFrames.cs
- RelatedView.cs
- AmbientProperties.cs
- ResourceDictionary.cs
- NavigationPropertyAccessor.cs
- ToolStripSeparator.cs
- SimpleMailWebEventProvider.cs
- CodeAttachEventStatement.cs
- ConfigurationValidatorBase.cs
- ObjectQueryExecutionPlan.cs
- CultureInfo.cs
- DataTableNewRowEvent.cs
- FormattedTextSymbols.cs
- BamlRecordHelper.cs
- ListViewEditEventArgs.cs
- DbDataAdapter.cs
- XNodeNavigator.cs
- CompressEmulationStream.cs
- BufferedGraphics.cs
- AnnotationDocumentPaginator.cs
- HttpHeaderCollection.cs
- WebPartDeleteVerb.cs
- DataListCommandEventArgs.cs
- HopperCache.cs
- HwndSubclass.cs
- RelatedPropertyManager.cs
- IntSecurity.cs
- CustomValidator.cs
- Exceptions.cs
- HandlerWithFactory.cs
- BeginStoryboard.cs
- WebDescriptionAttribute.cs
- RegisteredScript.cs
- ActiveXMessageFormatter.cs
- ToolboxItem.cs
- GraphicsContainer.cs
- PackWebRequestFactory.cs
- Dictionary.cs
- ExpandableObjectConverter.cs
- CellConstant.cs
- DbDataReader.cs