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
- FilterEventArgs.cs
- DetailsViewRowCollection.cs
- DecimalSumAggregationOperator.cs
- XslAst.cs
- FragmentQueryKB.cs
- SQLDateTimeStorage.cs
- XamlStyleSerializer.cs
- DbDataAdapter.cs
- Helper.cs
- AuthenticationService.cs
- DataViewSetting.cs
- EastAsianLunisolarCalendar.cs
- OptimizerPatterns.cs
- MatrixAnimationUsingKeyFrames.cs
- CacheForPrimitiveTypes.cs
- FigureHelper.cs
- CheckBoxDesigner.cs
- TagPrefixAttribute.cs
- WindowsSlider.cs
- MD5HashHelper.cs
- TrackingServices.cs
- ResetableIterator.cs
- AdjustableArrowCap.cs
- XmlSignatureManifest.cs
- HtmlImage.cs
- KnownTypes.cs
- InheritablePropertyChangeInfo.cs
- SelectionItemProviderWrapper.cs
- DocumentPageViewAutomationPeer.cs
- PrimaryKeyTypeConverter.cs
- ByteStreamGeometryContext.cs
- followingquery.cs
- Events.cs
- WebCategoryAttribute.cs
- ScrollItemProviderWrapper.cs
- ConstraintCollection.cs
- ConnectivityStatus.cs
- InternalTypeHelper.cs
- SQLMembershipProvider.cs
- TypeConverterAttribute.cs
- BaseDataList.cs
- SQLSingle.cs
- ContentType.cs
- ConfigurationSettings.cs
- DesignTimeVisibleAttribute.cs
- ServiceOperationListItemList.cs
- LoginCancelEventArgs.cs
- SizeChangedEventArgs.cs
- TextRangeEditLists.cs
- NativeMethodsCLR.cs
- PageSetupDialog.cs
- RelationalExpressions.cs
- DataGridColumn.cs
- milexports.cs
- AudioFormatConverter.cs
- VectorAnimation.cs
- ForeignKeyConstraint.cs
- CalendarSelectionChangedEventArgs.cs
- ItemCollection.cs
- CurrencyManager.cs
- SQLInt16Storage.cs
- RuntimeUtils.cs
- HoistedLocals.cs
- PerfCounterSection.cs
- MediaTimeline.cs
- EventProxy.cs
- FormsAuthenticationUserCollection.cs
- HyperLinkStyle.cs
- SmiMetaDataProperty.cs
- HMACSHA256.cs
- EncryptedData.cs
- SafeNativeMemoryHandle.cs
- ConfigurationSectionGroupCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- ListViewGroupConverter.cs
- GeneralTransformGroup.cs
- MenuItem.cs
- CqlParserHelpers.cs
- SoundPlayerAction.cs
- ToolStripComboBox.cs
- ResizeGrip.cs
- TextParagraphProperties.cs
- FileClassifier.cs
- Double.cs
- EntityDescriptor.cs
- SecurityException.cs
- XPathScanner.cs
- AddInStore.cs
- Pair.cs
- IPHostEntry.cs
- HScrollProperties.cs
- unitconverter.cs
- Canvas.cs
- StatusBarDrawItemEvent.cs
- DecoderReplacementFallback.cs
- NamespaceDecl.cs
- StorageFunctionMapping.cs
- OleDbDataReader.cs
- __Filters.cs
- InputProcessorProfilesLoader.cs