Code:
/ FX-1434 / FX-1434 / 1.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
- formatter.cs
- TableSectionStyle.cs
- SHA256.cs
- BitmapFrameEncode.cs
- CornerRadiusConverter.cs
- SessionStateModule.cs
- DigitShape.cs
- Descriptor.cs
- SectionInformation.cs
- TextControlDesigner.cs
- RequestQueryParser.cs
- LinqTreeNodeEvaluator.cs
- PageCopyCount.cs
- AsyncOperation.cs
- PreservationFileWriter.cs
- Point3DAnimation.cs
- XmlAttribute.cs
- SimpleLine.cs
- EventMappingSettings.cs
- HtmlInputPassword.cs
- PlatformNotSupportedException.cs
- CompleteWizardStep.cs
- WebPageTraceListener.cs
- SessionState.cs
- AnnotationHighlightLayer.cs
- InheritablePropertyChangeInfo.cs
- SHA512Managed.cs
- InteropTrackingRecord.cs
- ContentType.cs
- LineServicesCallbacks.cs
- SrgsRulesCollection.cs
- TextViewSelectionProcessor.cs
- PhysicalOps.cs
- HyperLink.cs
- Flattener.cs
- SQLRoleProvider.cs
- XamlSerializationHelper.cs
- EdmToObjectNamespaceMap.cs
- JsonGlobals.cs
- BooleanKeyFrameCollection.cs
- DataControlCommands.cs
- CryptoConfig.cs
- SqlUtils.cs
- SByte.cs
- HttpResponse.cs
- LayoutEngine.cs
- ObjectDataSourceDisposingEventArgs.cs
- SafeTimerHandle.cs
- SubqueryTrackingVisitor.cs
- DbgCompiler.cs
- TrackingServices.cs
- DiscoveryClientProtocol.cs
- MappingSource.cs
- HtmlInputPassword.cs
- SizeConverter.cs
- DebugView.cs
- StylusButtonCollection.cs
- AudioLevelUpdatedEventArgs.cs
- GridViewSortEventArgs.cs
- _MultipleConnectAsync.cs
- cookiecontainer.cs
- DrawingServices.cs
- webeventbuffer.cs
- SoapEnumAttribute.cs
- StreamGeometry.cs
- ControlIdConverter.cs
- ComponentSerializationService.cs
- FixedSOMTableCell.cs
- BooleanProjectedSlot.cs
- ValidationPropertyAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SqlRecordBuffer.cs
- TextParaLineResult.cs
- ActiveXContainer.cs
- WebConfigurationHost.cs
- RecipientInfo.cs
- x509utils.cs
- LazyTextWriterCreator.cs
- SqlMultiplexer.cs
- XXXOnTypeBuilderInstantiation.cs
- PersistencePipeline.cs
- ComplexLine.cs
- TraceListeners.cs
- SpecialFolderEnumConverter.cs
- RowsCopiedEventArgs.cs
- EditorPartChrome.cs
- HandledEventArgs.cs
- GlyphCache.cs
- SynchronizationContext.cs
- NotImplementedException.cs
- FormatConvertedBitmap.cs
- Model3DGroup.cs
- EntitySetDataBindingList.cs
- DataBindingList.cs
- Zone.cs
- FormsAuthenticationCredentials.cs
- ByteConverter.cs
- ButtonChrome.cs
- SafeNativeMethods.cs
- OracleDateTime.cs