Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / CheckBoxDesigner.cs / 1 / CheckBoxDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System.ComponentModel; using System.Diagnostics; using System; using System.Web.UI.WebControls; using Microsoft.Win32; ////// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] [SupportsPreviewControl(true)] public class CheckBoxDesigner : ControlDesigner { ////// Provides a designer for the ////// control. /// /// /// public override string GetDesignTimeHtml() { CheckBox c = (CheckBox)ViewControl; string originalText = c.Text; bool blank = (originalText == null) || (originalText.Length == 0); if (blank) { c.Text = "[" + c.ID + "]"; } string html = base.GetDesignTimeHtml(); if (blank) { c.Text = originalText; } return html; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Gets the design time HTML of the ////// control. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlUtil.cs
- TemplatedAdorner.cs
- FilterQueryOptionExpression.cs
- HideDisabledControlAdapter.cs
- PagesSection.cs
- DiffuseMaterial.cs
- SelectionHighlightInfo.cs
- WebPartMinimizeVerb.cs
- PropertyTabAttribute.cs
- SafeFileHandle.cs
- ReflectionHelper.cs
- TraceUtility.cs
- EdmItemCollection.cs
- ClockGroup.cs
- DefaultWorkflowSchedulerService.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TreeViewDataItemAutomationPeer.cs
- PageMediaSize.cs
- ComponentDispatcher.cs
- SafeEventLogWriteHandle.cs
- Currency.cs
- Nodes.cs
- safelink.cs
- TrackingStringDictionary.cs
- GZipDecoder.cs
- VisualTarget.cs
- XmlSchemaImporter.cs
- WebPartManagerInternals.cs
- InputScope.cs
- FixedTextSelectionProcessor.cs
- Cursors.cs
- httpstaticobjectscollection.cs
- DiffuseMaterial.cs
- ControlTemplate.cs
- COM2ExtendedBrowsingHandler.cs
- SystemUdpStatistics.cs
- RegexCompiler.cs
- CodeTypeParameter.cs
- DataGridTableCollection.cs
- RegexInterpreter.cs
- XmlChildNodes.cs
- SafeBuffer.cs
- ContextQuery.cs
- FormViewPagerRow.cs
- FileRegion.cs
- VerticalAlignConverter.cs
- SearchForVirtualItemEventArgs.cs
- XmlElementAttribute.cs
- PropertyValueUIItem.cs
- BuildProvider.cs
- PropertyBuilder.cs
- MsmqChannelFactory.cs
- TickBar.cs
- SecurityManager.cs
- HTTPNotFoundHandler.cs
- TimeoutException.cs
- XmlEntityReference.cs
- AssemblyBuilderData.cs
- CustomTypeDescriptor.cs
- TextBoxAutomationPeer.cs
- XmlDeclaration.cs
- ConnectionConsumerAttribute.cs
- Rect.cs
- RegexMatchCollection.cs
- ToggleProviderWrapper.cs
- WindowsStatic.cs
- SizeChangedEventArgs.cs
- OdbcFactory.cs
- UniformGrid.cs
- XMLSchema.cs
- Size3D.cs
- HijriCalendar.cs
- Graphics.cs
- ValuePattern.cs
- HttpVersion.cs
- VirtualPath.cs
- PagedDataSource.cs
- MsmqInputChannelListener.cs
- IRCollection.cs
- DbConnectionClosed.cs
- CalendarDesigner.cs
- JsonFormatWriterGenerator.cs
- MatrixUtil.cs
- MouseOverProperty.cs
- LocatorBase.cs
- MappedMetaModel.cs
- GenericRootAutomationPeer.cs
- TabControlCancelEvent.cs
- WindowsTreeView.cs
- XmlDocumentFragment.cs
- TrackingProfileCache.cs
- SqlConnectionStringBuilder.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- EntitySetBaseCollection.cs
- WebPartTransformerAttribute.cs
- Int64.cs
- DesignerActionPropertyItem.cs
- ObjectSecurity.cs
- EntityObject.cs
- MetadataExchangeBindings.cs