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
- RootProfilePropertySettingsCollection.cs
- unsafenativemethodsother.cs
- DataGridCaption.cs
- MainMenu.cs
- QilTypeChecker.cs
- IndexerNameAttribute.cs
- RSACryptoServiceProvider.cs
- TextChange.cs
- _Semaphore.cs
- BamlReader.cs
- SafeBitVector32.cs
- CodeNamespace.cs
- ArgumentDesigner.xaml.cs
- SmtpMail.cs
- CollectionEditor.cs
- ItemType.cs
- WeakHashtable.cs
- WorkflowRuntimeBehavior.cs
- TreeNodeStyle.cs
- XmlDataContract.cs
- DrawingVisualDrawingContext.cs
- BoolLiteral.cs
- MimePart.cs
- MailDefinition.cs
- _BufferOffsetSize.cs
- Event.cs
- XslException.cs
- ObjectDisposedException.cs
- ConsumerConnectionPoint.cs
- SqlFileStream.cs
- WebBrowserDocumentCompletedEventHandler.cs
- HotSpotCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Messages.cs
- MetaModel.cs
- BulletedList.cs
- SiteMapDataSource.cs
- Constants.cs
- WSMessageEncoding.cs
- TransactionalPackage.cs
- ConfigXmlComment.cs
- AssemblyAttributesGoHere.cs
- AddInActivator.cs
- QilDataSource.cs
- CharacterString.cs
- ImageSourceTypeConverter.cs
- TrailingSpaceComparer.cs
- Geometry3D.cs
- SqlNodeAnnotation.cs
- FrameAutomationPeer.cs
- ViewGenerator.cs
- VerticalAlignConverter.cs
- HttpListenerResponse.cs
- TheQuery.cs
- TreeViewDesigner.cs
- DefaultCommandConverter.cs
- PropertyInfoSet.cs
- XmlTextReader.cs
- MappingMetadataHelper.cs
- QueryCursorEventArgs.cs
- PropertyGroupDescription.cs
- DeclarativeCatalogPart.cs
- Serialization.cs
- InteropAutomationProvider.cs
- EndPoint.cs
- ControlValuePropertyAttribute.cs
- RegexCharClass.cs
- UserNamePasswordValidator.cs
- OrderedDictionary.cs
- SimpleRecyclingCache.cs
- SearchForVirtualItemEventArgs.cs
- HttpPostLocalhostServerProtocol.cs
- TimeManager.cs
- SeekStoryboard.cs
- HybridObjectCache.cs
- CultureData.cs
- ApplicationServicesHostFactory.cs
- MethodRental.cs
- ConnectionManagementSection.cs
- IndicCharClassifier.cs
- EdmType.cs
- KeyGestureValueSerializer.cs
- XmlRootAttribute.cs
- VisualProxy.cs
- TransformConverter.cs
- WebRequestModuleElementCollection.cs
- ContextMenuAutomationPeer.cs
- DescendantOverDescendantQuery.cs
- TcpStreams.cs
- SqlDataSourceStatusEventArgs.cs
- XamlBrushSerializer.cs
- RemoteWebConfigurationHostServer.cs
- MouseBinding.cs
- ContextStaticAttribute.cs
- SmiSettersStream.cs
- ListViewItem.cs
- Rotation3DAnimationBase.cs
- ItemCheckEvent.cs
- ManagementClass.cs
- Menu.cs