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
- StrongNameIdentityPermission.cs
- RealizationDrawingContextWalker.cs
- ReadOnlyPropertyMetadata.cs
- TextSelectionHighlightLayer.cs
- DataGridViewColumnCollectionEditor.cs
- NonVisualControlAttribute.cs
- HttpCookie.cs
- StatusBar.cs
- ResourceContainerWrapper.cs
- CodeTypeReferenceExpression.cs
- EpmContentDeSerializer.cs
- WebPartPersonalization.cs
- XsdDataContractExporter.cs
- _UncName.cs
- SamlSubjectStatement.cs
- SystemNetworkInterface.cs
- IFlowDocumentViewer.cs
- FileDetails.cs
- XmlElement.cs
- ToolStripArrowRenderEventArgs.cs
- Point.cs
- DefinitionBase.cs
- SamlAuthenticationStatement.cs
- Psha1DerivedKeyGenerator.cs
- DebugController.cs
- Signature.cs
- TimerElapsedEvenArgs.cs
- HttpHeaderCollection.cs
- RefreshPropertiesAttribute.cs
- PermissionListSet.cs
- TextEncodedRawTextWriter.cs
- BasicCommandTreeVisitor.cs
- Config.cs
- FillErrorEventArgs.cs
- DesignerAutoFormatCollection.cs
- CollectionViewProxy.cs
- BitmapCache.cs
- RedistVersionInfo.cs
- OleAutBinder.cs
- BoundPropertyEntry.cs
- QilXmlReader.cs
- PersonalizationStateInfo.cs
- Base64Stream.cs
- TdsEnums.cs
- XPathNodeList.cs
- InstallerTypeAttribute.cs
- HandlerBase.cs
- BitmapEffectDrawing.cs
- PolyQuadraticBezierSegment.cs
- ServiceNameElementCollection.cs
- DispatcherFrame.cs
- HtmlDocument.cs
- Parsers.cs
- DateTimeConverter2.cs
- BitmapPalettes.cs
- AspNetSynchronizationContext.cs
- XpsSerializationException.cs
- CharacterBufferReference.cs
- FileChangesMonitor.cs
- categoryentry.cs
- DesignerActionKeyboardBehavior.cs
- TransformerConfigurationWizardBase.cs
- UnmanagedMemoryStream.cs
- Message.cs
- controlskin.cs
- TextTreeDeleteContentUndoUnit.cs
- Int64.cs
- SqlInfoMessageEvent.cs
- PointCollection.cs
- HwndSubclass.cs
- contentDescriptor.cs
- MimeBasePart.cs
- PropertyValidationContext.cs
- RefreshEventArgs.cs
- HostingPreferredMapPath.cs
- ByteRangeDownloader.cs
- OdbcReferenceCollection.cs
- DeclarationUpdate.cs
- SignatureToken.cs
- ExpressionBindings.cs
- TdsParserHelperClasses.cs
- X509WindowsSecurityToken.cs
- SevenBitStream.cs
- SQLDoubleStorage.cs
- EmptyReadOnlyDictionaryInternal.cs
- XPathNodeHelper.cs
- Rect3D.cs
- GlyphManager.cs
- _emptywebproxy.cs
- ArgumentValidation.cs
- ServiceHttpHandlerFactory.cs
- UrlMapping.cs
- DBConnection.cs
- PhysicalFontFamily.cs
- AbsoluteQuery.cs
- UpdatePanel.cs
- StateManagedCollection.cs
- Keyboard.cs
- Dictionary.cs
- WebServicesDescriptionAttribute.cs