Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / HideDisabledControlAdapter.cs / 1305376 / HideDisabledControlAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; 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. 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.Web; using System.Web.UI; using System.Web.UI.Adapters; // Used for controls which use their default rendering, but are hidden when disabled. 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
- Missing.cs
- RegexMatch.cs
- WSTrustFeb2005.cs
- BaseConfigurationRecord.cs
- RootProfilePropertySettingsCollection.cs
- DataComponentMethodGenerator.cs
- SqlNodeAnnotation.cs
- AttachedPropertyInfo.cs
- SchemaEntity.cs
- SoapObjectWriter.cs
- ProtocolsConfigurationHandler.cs
- DbMetaDataFactory.cs
- DataBoundControl.cs
- DBDataPermission.cs
- ConfigXmlSignificantWhitespace.cs
- CharKeyFrameCollection.cs
- EastAsianLunisolarCalendar.cs
- COM2TypeInfoProcessor.cs
- SupportsEventValidationAttribute.cs
- AccessedThroughPropertyAttribute.cs
- HelpKeywordAttribute.cs
- WebPartZone.cs
- EventArgs.cs
- AbstractSvcMapFileLoader.cs
- PenLineCapValidation.cs
- HwndSourceParameters.cs
- ModifierKeysValueSerializer.cs
- StandardCommands.cs
- Pen.cs
- ContractSearchPattern.cs
- GridViewDeletedEventArgs.cs
- NetSectionGroup.cs
- ResizingMessageFilter.cs
- UIElementHelper.cs
- IgnoreDeviceFilterElement.cs
- FrameworkTemplate.cs
- MatrixTransform3D.cs
- FontWeights.cs
- ButtonBase.cs
- GuidelineCollection.cs
- RijndaelCryptoServiceProvider.cs
- XmlSchemaAnnotated.cs
- BindingEntityInfo.cs
- SqlCacheDependencyDatabaseCollection.cs
- Translator.cs
- StandardOleMarshalObject.cs
- XmlSequenceWriter.cs
- RemotingServices.cs
- StringSource.cs
- SchemaObjectWriter.cs
- IconBitmapDecoder.cs
- DbConnectionPoolCounters.cs
- IPipelineRuntime.cs
- RangeValuePattern.cs
- PackWebRequestFactory.cs
- EventWaitHandleSecurity.cs
- Point4D.cs
- ProfileService.cs
- CompositeFontParser.cs
- SpellerStatusTable.cs
- SchemaNamespaceManager.cs
- SystemIcmpV4Statistics.cs
- OutputCacheModule.cs
- EntitySet.cs
- FormsAuthenticationConfiguration.cs
- StreamInfo.cs
- ImportDesigner.xaml.cs
- HtmlTextArea.cs
- Debugger.cs
- JavaScriptObjectDeserializer.cs
- ProtocolImporter.cs
- DataRowView.cs
- SchemaLookupTable.cs
- XmlWrappingWriter.cs
- InputBuffer.cs
- ListViewGroup.cs
- SafeFileHandle.cs
- CollectionChangeEventArgs.cs
- XmlWrappingWriter.cs
- XmlChildNodes.cs
- ScriptControlManager.cs
- DataTableCollection.cs
- SearchForVirtualItemEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- DynamicMethod.cs
- WebPartConnectVerb.cs
- NullReferenceException.cs
- UIElementIsland.cs
- UIPermission.cs
- EventLogPermissionEntry.cs
- FilteredAttributeCollection.cs
- GridProviderWrapper.cs
- EntityContainer.cs
- AnnotationMap.cs
- BinHexEncoding.cs
- Polyline.cs
- SR.cs
- SmiRecordBuffer.cs
- RegistryConfigurationProvider.cs
- Hex.cs