Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / HideDisabledControlAdapter.cs / 1 / HideDisabledControlAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.Adapters; // Used for controls which use their default rendering, but are hidden when disabled. [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class HideDisabledControlAdapter : WebControlAdapter { // Returns without doing anything if the control is disabled, otherwise, uses the default rendering. protected internal override void Render(HtmlTextWriter writer) { if (Control.Enabled == false) { return; } Control.Render(writer); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SoapEnumAttribute.cs
- VariableAction.cs
- TakeOrSkipQueryOperator.cs
- ConfigsHelper.cs
- XamlBrushSerializer.cs
- SourceElementsCollection.cs
- SelectedDatesCollection.cs
- DependencyObjectType.cs
- DbSource.cs
- LayoutEditorPart.cs
- ErrorStyle.cs
- BasicExpressionVisitor.cs
- OrderedParallelQuery.cs
- MachineSettingsSection.cs
- FullTextBreakpoint.cs
- securitycriticaldataClass.cs
- ScopelessEnumAttribute.cs
- EdmValidator.cs
- PermissionSetEnumerator.cs
- ProcessingInstructionAction.cs
- ErrorEventArgs.cs
- SqlDataSourceTableQuery.cs
- SimpleBitVector32.cs
- TrackingQuery.cs
- BoundField.cs
- localization.cs
- DesignerCapabilities.cs
- XamlGridLengthSerializer.cs
- XsdDuration.cs
- MemberRelationshipService.cs
- ProxyElement.cs
- QualifiedCellIdBoolean.cs
- Normalization.cs
- EntitySetBaseCollection.cs
- ForEachAction.cs
- DocumentPageViewAutomationPeer.cs
- ThemeDirectoryCompiler.cs
- ObjRef.cs
- SafeHandles.cs
- PropVariant.cs
- TraceLevelStore.cs
- WrappedIUnknown.cs
- WorkflowTraceTransfer.cs
- ValidationSummary.cs
- ISAPIRuntime.cs
- KeyboardDevice.cs
- XPathParser.cs
- AttachedPropertyBrowsableAttribute.cs
- CompensableActivity.cs
- TableColumnCollectionInternal.cs
- Geometry3D.cs
- MenuItem.cs
- AsyncOperationManager.cs
- ContainerVisual.cs
- NetworkAddressChange.cs
- Size.cs
- RowToFieldTransformer.cs
- AttributeUsageAttribute.cs
- ForeignKeyFactory.cs
- UriTemplateDispatchFormatter.cs
- UrlPath.cs
- StreamHelper.cs
- WebPartConnectionsCancelEventArgs.cs
- ExpressionQuoter.cs
- TimeSpanValidatorAttribute.cs
- User.cs
- Validator.cs
- input.cs
- ScriptMethodAttribute.cs
- FlowNode.cs
- ToolboxComponentsCreatedEventArgs.cs
- FileDialog_Vista_Interop.cs
- SynchronizationFilter.cs
- DataGridPageChangedEventArgs.cs
- VerticalAlignConverter.cs
- TdsEnums.cs
- TextPointer.cs
- WorkflowPrinting.cs
- BufferCache.cs
- dataSvcMapFileLoader.cs
- HierarchicalDataBoundControl.cs
- LinkLabelLinkClickedEvent.cs
- SqlAliasesReferenced.cs
- WebReferencesBuildProvider.cs
- BaseHashHelper.cs
- CornerRadius.cs
- SafeThemeHandle.cs
- WindowsGraphicsCacheManager.cs
- XmlDataDocument.cs
- DbgUtil.cs
- TypeConstant.cs
- XmlNamedNodeMap.cs
- WmlMobileTextWriter.cs
- DateTimeUtil.cs
- OptimizedTemplateContent.cs
- PathFigure.cs
- QueryStringParameter.cs
- LoginCancelEventArgs.cs
- DynamicRendererThreadManager.cs
- CaseKeyBox.xaml.cs