Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ParseNumbers.cs
- CharConverter.cs
- WindowsScrollBarBits.cs
- SecurityTokenAuthenticator.cs
- LayoutUtils.cs
- ManagementException.cs
- DesignerContextDescriptor.cs
- XsltArgumentList.cs
- ConnectionsZone.cs
- SmiEventStream.cs
- DrawingBrush.cs
- Sentence.cs
- IdleTimeoutMonitor.cs
- XmlSerializationGeneratedCode.cs
- BufferedReceiveManager.cs
- ComponentChangedEvent.cs
- GeneralTransform2DTo3DTo2D.cs
- MULTI_QI.cs
- PinnedBufferMemoryStream.cs
- SchemaImporterExtension.cs
- ObjectDataSourceMethodEventArgs.cs
- InputProcessorProfiles.cs
- ApplicationManager.cs
- controlskin.cs
- Thread.cs
- ValidationService.cs
- WebControlAdapter.cs
- ScrollableControl.cs
- elementinformation.cs
- Utils.cs
- IPPacketInformation.cs
- Soap12ServerProtocol.cs
- PropertyInfoSet.cs
- ValueSerializer.cs
- ComponentManagerBroker.cs
- ExtendedProperty.cs
- MemoryStream.cs
- TranslateTransform.cs
- Attachment.cs
- SqlDataSourceEnumerator.cs
- SimpleApplicationHost.cs
- TextTreePropertyUndoUnit.cs
- StreamResourceInfo.cs
- ScrollEvent.cs
- ExpressionUtilities.cs
- DeploymentExceptionMapper.cs
- EditingCommands.cs
- Visual3D.cs
- CompilationRelaxations.cs
- ControlBuilderAttribute.cs
- MaskDesignerDialog.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Condition.cs
- XmlSerializationWriter.cs
- XPathNodeList.cs
- ValueQuery.cs
- XmlSchemaObject.cs
- FileIOPermission.cs
- CuspData.cs
- Math.cs
- VScrollProperties.cs
- DataGridBoundColumn.cs
- WebControlAdapter.cs
- ScriptResourceAttribute.cs
- ISessionStateStore.cs
- PinnedBufferMemoryStream.cs
- PageRanges.cs
- WinFormsSpinner.cs
- ClientSettingsStore.cs
- AuthStoreRoleProvider.cs
- MsmqReceiveParameters.cs
- KeyTimeConverter.cs
- DynamicFilterExpression.cs
- ToolStripRenderEventArgs.cs
- DataBoundControl.cs
- EasingKeyFrames.cs
- DebugTracing.cs
- ConditionalAttribute.cs
- CheckBoxDesigner.cs
- DateTimeFormatInfoScanner.cs
- ContextMenuService.cs
- XmlDataSource.cs
- WebPartAddingEventArgs.cs
- SubqueryRules.cs
- Perspective.cs
- SvcMapFileSerializer.cs
- ClientApiGenerator.cs
- HttpAsyncResult.cs
- ConstructorNeedsTagAttribute.cs
- SourceSwitch.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EditCommandColumn.cs
- GestureRecognizer.cs
- PathFigure.cs
- Sql8ExpressionRewriter.cs
- DocumentReference.cs
- CatalogPartCollection.cs
- Int64Animation.cs
- XPathParser.cs
- SessionIDManager.cs