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
- RectConverter.cs
- OleDbPermission.cs
- Marshal.cs
- BindingCollection.cs
- NonVisualControlAttribute.cs
- EntityContainerEntitySet.cs
- TdsParserSessionPool.cs
- IgnoreFlushAndCloseStream.cs
- WizardStepBase.cs
- WindowsFormsSectionHandler.cs
- ConversionContext.cs
- LinqDataSourceContextData.cs
- MembershipAdapter.cs
- MediaSystem.cs
- TemplateControlParser.cs
- WebPartMinimizeVerb.cs
- TemplateBindingExtensionConverter.cs
- XmlSchemaNotation.cs
- PersonalizationStateQuery.cs
- ThemeConfigurationDialog.cs
- Baml6Assembly.cs
- EpmSourceTree.cs
- ResXResourceWriter.cs
- ToolZoneDesigner.cs
- CharacterShapingProperties.cs
- SrgsDocumentParser.cs
- EnumBuilder.cs
- DataSourceSelectArguments.cs
- CodeSubDirectoriesCollection.cs
- ThemeInfoAttribute.cs
- MetadataArtifactLoaderResource.cs
- TextEditorCharacters.cs
- DateTimeFormat.cs
- InfoCardProofToken.cs
- InfoCardCryptoHelper.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ConfigXmlReader.cs
- PolicyException.cs
- QueryContext.cs
- MergeFilterQuery.cs
- AddingNewEventArgs.cs
- TextEndOfParagraph.cs
- LogicalExpr.cs
- PieceDirectory.cs
- DetailsViewRowCollection.cs
- Receive.cs
- UmAlQuraCalendar.cs
- Function.cs
- DataServiceEntityAttribute.cs
- ObjectReferenceStack.cs
- MULTI_QI.cs
- HitTestParameters3D.cs
- MenuRenderer.cs
- _ListenerResponseStream.cs
- SamlNameIdentifierClaimResource.cs
- fixedPageContentExtractor.cs
- XmlCharType.cs
- RightsManagementEncryptedStream.cs
- Misc.cs
- IndicCharClassifier.cs
- ExplicitDiscriminatorMap.cs
- SignatureToken.cs
- TiffBitmapDecoder.cs
- HostSecurityManager.cs
- SimpleType.cs
- ReadOnlyCollectionBuilder.cs
- FixedLineResult.cs
- LoadItemsEventArgs.cs
- XslCompiledTransform.cs
- DiscreteKeyFrames.cs
- DataColumnMappingCollection.cs
- LinearQuaternionKeyFrame.cs
- UnsafeNativeMethods.cs
- PathSegmentCollection.cs
- Symbol.cs
- CapacityStreamGeometryContext.cs
- TableColumn.cs
- ClientData.cs
- GrowingArray.cs
- MemberDescriptor.cs
- ListChunk.cs
- DiscoveryReferences.cs
- ListSurrogate.cs
- Evidence.cs
- WebServiceEnumData.cs
- ListViewCommandEventArgs.cs
- SymmetricAlgorithm.cs
- NumericUpDownAccelerationCollection.cs
- ClassValidator.cs
- ChildrenQuery.cs
- SelectionPattern.cs
- ApplicationBuildProvider.cs
- WpfKnownMemberInvoker.cs
- SpellerInterop.cs
- SqlVersion.cs
- HtmlGenericControl.cs
- ExpressionReplacer.cs
- AnnotationAdorner.cs
- TextElementEditingBehaviorAttribute.cs
- ConfigurationSchemaErrors.cs