Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AdCreatedEventArgs.cs
- SecondaryIndexList.cs
- TextParagraphProperties.cs
- BitmapEffectInput.cs
- SiteMapPath.cs
- WmlImageAdapter.cs
- StateManagedCollection.cs
- XmlTextReaderImplHelpers.cs
- StructureChangedEventArgs.cs
- ObjectMaterializedEventArgs.cs
- XamlHostingSection.cs
- NetCodeGroup.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ContextMenuStrip.cs
- SQLGuidStorage.cs
- RightsManagementEncryptedStream.cs
- AnnotationHelper.cs
- ExchangeUtilities.cs
- TextFormatter.cs
- PropertyCondition.cs
- HwndHost.cs
- Ray3DHitTestResult.cs
- X509SecurityTokenAuthenticator.cs
- PresentationSource.cs
- SiteMapDataSource.cs
- SocketElement.cs
- DataObjectEventArgs.cs
- SafeUserTokenHandle.cs
- ZoneLinkButton.cs
- ConnectionManagementSection.cs
- CellPartitioner.cs
- StylusDownEventArgs.cs
- MessagePropertyFilter.cs
- PropertyTab.cs
- TextEditorLists.cs
- TypeConverter.cs
- storepermissionattribute.cs
- StreamUpdate.cs
- GACIdentityPermission.cs
- HwndStylusInputProvider.cs
- COM2PropertyDescriptor.cs
- StylusPoint.cs
- NumericPagerField.cs
- PaperSize.cs
- DocumentPageHost.cs
- SimpleType.cs
- ValidationResult.cs
- ArraySubsetEnumerator.cs
- TypeBuilderInstantiation.cs
- TextContainerHelper.cs
- RowUpdatedEventArgs.cs
- CompilationLock.cs
- ToolboxDataAttribute.cs
- XmlDataLoader.cs
- SQLByte.cs
- EventLogPermissionEntry.cs
- IdentityValidationException.cs
- CrossContextChannel.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EventHandlersDesigner.cs
- RemotingException.cs
- ServerValidateEventArgs.cs
- CommandHelper.cs
- TableCellCollection.cs
- ZipIOModeEnforcingStream.cs
- ImpersonationContext.cs
- EntityStoreSchemaGenerator.cs
- Command.cs
- backend.cs
- TextSelection.cs
- PtsContext.cs
- DesignerEventService.cs
- BaseServiceProvider.cs
- DbProviderFactory.cs
- GlobalProxySelection.cs
- PageWrapper.cs
- DataSpaceManager.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Part.cs
- CryptoStream.cs
- PageRanges.cs
- CodeConditionStatement.cs
- ParameterElementCollection.cs
- SplitterPanel.cs
- TagPrefixInfo.cs
- EmbeddedMailObjectsCollection.cs
- EmbeddedObject.cs
- InitializationEventAttribute.cs
- GetPageNumberCompletedEventArgs.cs
- Comparer.cs
- SafeNativeMethods.cs
- IndentedWriter.cs
- COMException.cs
- FileFormatException.cs
- PointAnimationUsingPath.cs
- InputQueue.cs
- EventLogConfiguration.cs
- ConfigWriter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ToolStripScrollButton.cs