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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2ExtendedUITypeEditor.cs
- PerformanceCounters.cs
- Deserializer.cs
- TreeChangeInfo.cs
- BitmapEffectInput.cs
- LayoutEngine.cs
- LockRecoveryTask.cs
- SystemBrushes.cs
- XmlWriterTraceListener.cs
- ObjectReferenceStack.cs
- ManagedWndProcTracker.cs
- MembershipUser.cs
- BitmapSizeOptions.cs
- DataSourceExpression.cs
- TextRange.cs
- ZipIOModeEnforcingStream.cs
- SyndicationItem.cs
- HashAlgorithm.cs
- SqlCacheDependency.cs
- HttpCookiesSection.cs
- FrameSecurityDescriptor.cs
- UnhandledExceptionEventArgs.cs
- ObjectTokenCategory.cs
- KnownTypes.cs
- DbProviderFactories.cs
- StrokeNodeEnumerator.cs
- TrackingRecord.cs
- ConstrainedDataObject.cs
- HttpPostLocalhostServerProtocol.cs
- FixedTextSelectionProcessor.cs
- SessionPageStatePersister.cs
- AppModelKnownContentFactory.cs
- ActivityPropertyReference.cs
- Figure.cs
- CanExecuteRoutedEventArgs.cs
- BitmapScalingModeValidation.cs
- XamlToRtfWriter.cs
- EntityAdapter.cs
- TextEditorTables.cs
- Cursor.cs
- GPRECT.cs
- SelectionListDesigner.cs
- Knowncolors.cs
- DataGridRow.cs
- DataObjectMethodAttribute.cs
- SqlProcedureAttribute.cs
- LightweightEntityWrapper.cs
- SettingsBindableAttribute.cs
- ConvertEvent.cs
- WebPartDisplayModeCancelEventArgs.cs
- ConfigurationProperty.cs
- SystemInformation.cs
- SqlInternalConnectionTds.cs
- HttpCookieCollection.cs
- OdbcFactory.cs
- CodeAttributeArgument.cs
- WindowsIdentity.cs
- mediaeventargs.cs
- InkCanvasInnerCanvas.cs
- EntitySqlQueryBuilder.cs
- RefreshPropertiesAttribute.cs
- ComAdminWrapper.cs
- FontStyle.cs
- RoutedEventHandlerInfo.cs
- WindowsToolbar.cs
- SafeSecurityHelper.cs
- RegistryDataKey.cs
- ListBindingConverter.cs
- HorizontalAlignConverter.cs
- RadialGradientBrush.cs
- DataGridViewRowHeaderCell.cs
- HtmlDocument.cs
- Timer.cs
- NegotiateStream.cs
- StatusBarAutomationPeer.cs
- BooleanSwitch.cs
- TextSearch.cs
- KeySpline.cs
- DictionaryKeyPropertyAttribute.cs
- TableCell.cs
- DataGridPagerStyle.cs
- BooleanAnimationUsingKeyFrames.cs
- XamlTypeMapperSchemaContext.cs
- documentsequencetextpointer.cs
- SqlMethodAttribute.cs
- BitmapMetadataBlob.cs
- Stylus.cs
- MiniMapControl.xaml.cs
- OleDbErrorCollection.cs
- UserPreferenceChangedEventArgs.cs
- PropertyGridView.cs
- FormViewRow.cs
- CreateUserWizard.cs
- ManagedIStream.cs
- CodeSubDirectoriesCollection.cs
- InstanceBehavior.cs
- GridViewUpdateEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- PackageRelationshipCollection.cs
- AspNetCacheProfileAttribute.cs