Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SubpageParaClient.cs
- Baml2006SchemaContext.cs
- TypedDataSetSchemaImporterExtension.cs
- RenderingBiasValidation.cs
- ResourceDisplayNameAttribute.cs
- Section.cs
- XmlHierarchicalEnumerable.cs
- JsonStringDataContract.cs
- CheckStoreFileValidityRequest.cs
- DiscoveryInnerClientAdhocCD1.cs
- BuilderPropertyEntry.cs
- SettingsProviderCollection.cs
- ContourSegment.cs
- RouteItem.cs
- SystemTcpStatistics.cs
- assertwrapper.cs
- CommandBindingCollection.cs
- TracingConnectionListener.cs
- HintTextMaxWidthConverter.cs
- CngKey.cs
- PointAnimationUsingPath.cs
- HttpCachePolicy.cs
- Merger.cs
- RegexReplacement.cs
- SqlConnection.cs
- QilInvokeEarlyBound.cs
- LicenseException.cs
- NopReturnReader.cs
- DesignerOptionService.cs
- Size3D.cs
- BufferedReadStream.cs
- TextElementEditingBehaviorAttribute.cs
- SspiSecurityToken.cs
- ComboBoxItem.cs
- EntityStoreSchemaGenerator.cs
- _ProxyChain.cs
- SharedStatics.cs
- SystemDiagnosticsSection.cs
- DecoratedNameAttribute.cs
- HttpException.cs
- OrderByQueryOptionExpression.cs
- PhysicalAddress.cs
- ToolStripItemEventArgs.cs
- RouteTable.cs
- FontFamilyIdentifier.cs
- WebBrowserNavigatingEventHandler.cs
- XPathException.cs
- ModelProperty.cs
- HTTPNotFoundHandler.cs
- StringReader.cs
- ColumnReorderedEventArgs.cs
- ResourceKey.cs
- AdRotator.cs
- ValidationHelper.cs
- DeploymentSectionCache.cs
- SafeFileMappingHandle.cs
- InkCanvasAutomationPeer.cs
- DatePickerTextBox.cs
- ZipIOLocalFileDataDescriptor.cs
- RequestBringIntoViewEventArgs.cs
- RadialGradientBrush.cs
- MetafileHeaderWmf.cs
- DataGridViewSelectedColumnCollection.cs
- ScriptingRoleServiceSection.cs
- altserialization.cs
- XmlStringTable.cs
- ErrorWrapper.cs
- ComponentDispatcherThread.cs
- NumericUpDown.cs
- DSASignatureDeformatter.cs
- DataRow.cs
- ConfigurationUtility.cs
- DiagnosticsConfiguration.cs
- WebServiceTypeData.cs
- XmlIlGenerator.cs
- AddInPipelineAttributes.cs
- Int32RectConverter.cs
- SkipStoryboardToFill.cs
- SharedStatics.cs
- SelectionService.cs
- FormViewModeEventArgs.cs
- XsltException.cs
- VisualStyleElement.cs
- LeaseManager.cs
- AssemblyAttributesGoHere.cs
- XmlPropertyBag.cs
- LinearQuaternionKeyFrame.cs
- mediaeventshelper.cs
- DispatcherHookEventArgs.cs
- FontUnitConverter.cs
- SrgsToken.cs
- DbParameterHelper.cs
- StoreAnnotationsMap.cs
- TextWriter.cs
- ExtendedProtectionPolicy.cs
- DBConcurrencyException.cs
- CompleteWizardStep.cs
- PropertyChangeTracker.cs
- ProviderException.cs
- ProfileParameter.cs