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
- Missing.cs
- DesignerCategoryAttribute.cs
- ViewBox.cs
- NetMsmqBinding.cs
- UIElementPropertyUndoUnit.cs
- NativeMethodsOther.cs
- ValidatingReaderNodeData.cs
- QuaternionAnimation.cs
- ECDsa.cs
- JsonFormatGeneratorStatics.cs
- DispatcherSynchronizationContext.cs
- FileDataSourceCache.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DataGridViewSortCompareEventArgs.cs
- ExceptionUtil.cs
- CacheAxisQuery.cs
- Socket.cs
- ContextStaticAttribute.cs
- PropertyItemInternal.cs
- JoinCqlBlock.cs
- SqlBulkCopyColumnMappingCollection.cs
- Zone.cs
- TextHidden.cs
- ApplicationId.cs
- WebPartConnectionsCancelVerb.cs
- AnonymousIdentificationSection.cs
- SafeEventLogWriteHandle.cs
- UpdatePanelTriggerCollection.cs
- Grant.cs
- FixedPageStructure.cs
- ParameterReplacerVisitor.cs
- AspNetHostingPermission.cs
- DebugView.cs
- ScriptBehaviorDescriptor.cs
- XmlLinkedNode.cs
- StringConverter.cs
- CompareValidator.cs
- DataControlField.cs
- FrameSecurityDescriptor.cs
- ItemList.cs
- Classification.cs
- MultipleViewPattern.cs
- XmlCountingReader.cs
- XPathNodeList.cs
- FormsAuthenticationCredentials.cs
- TreeNodeConverter.cs
- ComponentRenameEvent.cs
- UnsafeNativeMethodsCLR.cs
- __Error.cs
- odbcmetadatafactory.cs
- EmptyEnumerator.cs
- Color.cs
- WinEventQueueItem.cs
- AspCompat.cs
- HtmlValidatorAdapter.cs
- PopupRootAutomationPeer.cs
- PhoneCallDesigner.cs
- ToolStripOverflow.cs
- Config.cs
- ExtentKey.cs
- graph.cs
- ErrorCodes.cs
- HMACSHA256.cs
- AssemblyCache.cs
- Win32.cs
- SHA384Managed.cs
- DataGridViewRowConverter.cs
- LocatorPart.cs
- PathGradientBrush.cs
- sqlinternaltransaction.cs
- MarshalByRefObject.cs
- DbCommandTree.cs
- CellParaClient.cs
- ValidationHelpers.cs
- VariableQuery.cs
- MaterialCollection.cs
- InvalidComObjectException.cs
- KeyValuePair.cs
- IndicCharClassifier.cs
- DataIdProcessor.cs
- DefaultValueTypeConverter.cs
- Accessible.cs
- GenericUriParser.cs
- WebBrowserUriTypeConverter.cs
- AsyncOperationManager.cs
- DataGridPagerStyle.cs
- ImmutableDispatchRuntime.cs
- CodeNamespaceImportCollection.cs
- GeneralTransform3D.cs
- RangeBaseAutomationPeer.cs
- SystemWebSectionGroup.cs
- ModuleConfigurationInfo.cs
- ColorPalette.cs
- SurrogateSelector.cs
- SystemBrushes.cs
- NamespaceDecl.cs
- DragDrop.cs
- RepeatButtonAutomationPeer.cs
- ApplicationContext.cs
- IItemContainerGenerator.cs