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
- X509CertificateCollection.cs
- KeyNotFoundException.cs
- IDQuery.cs
- PersianCalendar.cs
- SqlError.cs
- ListViewDataItem.cs
- QueryOutputWriter.cs
- TableLayout.cs
- InfoCardTraceRecord.cs
- DescendantOverDescendantQuery.cs
- HttpRequestWrapper.cs
- MappingItemCollection.cs
- DocumentSequence.cs
- SafeProcessHandle.cs
- BridgeDataReader.cs
- FutureFactory.cs
- RawAppCommandInputReport.cs
- RegexInterpreter.cs
- BroadcastEventHelper.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- securitymgrsite.cs
- reliableinputsessionchannel.cs
- XmlNamespaceManager.cs
- RegexInterpreter.cs
- ReadOnlyCollectionBuilder.cs
- ScrollBar.cs
- FontUnit.cs
- UInt16.cs
- DefaultTextStoreTextComposition.cs
- TableColumnCollectionInternal.cs
- TypeSchema.cs
- UpDownEvent.cs
- SimplePropertyEntry.cs
- TypedOperationInfo.cs
- AssemblyBuilder.cs
- RecipientInfo.cs
- ThreadStartException.cs
- BStrWrapper.cs
- RestClientProxyHandler.cs
- ScrollEvent.cs
- HitTestWithPointDrawingContextWalker.cs
- EventOpcode.cs
- ApplicationSecurityManager.cs
- QilXmlReader.cs
- Bitmap.cs
- SHA384Cng.cs
- PagedControl.cs
- VerificationAttribute.cs
- AssemblyAttributes.cs
- ThreadStateException.cs
- EntityDataSourceContainerNameConverter.cs
- FastEncoder.cs
- AutomationPropertyInfo.cs
- NetNamedPipeSecurityMode.cs
- CqlBlock.cs
- PreDigestedSignedInfo.cs
- RawContentTypeMapper.cs
- SmtpAuthenticationManager.cs
- TextBoxBase.cs
- ObjectSerializerFactory.cs
- QilChoice.cs
- OverrideMode.cs
- Keyboard.cs
- ProcessHostServerConfig.cs
- EmissiveMaterial.cs
- Point3DIndependentAnimationStorage.cs
- MenuRendererStandards.cs
- XamlWriter.cs
- ComponentCommands.cs
- RepeatButtonAutomationPeer.cs
- ClientFormsAuthenticationCredentials.cs
- RoleManagerModule.cs
- NodeLabelEditEvent.cs
- Encoder.cs
- TemplateControlParser.cs
- ByteConverter.cs
- CallbackValidatorAttribute.cs
- InputManager.cs
- GlyphRun.cs
- HttpRawResponse.cs
- CacheMemory.cs
- PathSegment.cs
- RuntimeIdentifierPropertyAttribute.cs
- SimpleType.cs
- CounterSetInstanceCounterDataSet.cs
- FileCodeGroup.cs
- BuildDependencySet.cs
- SingleSelectRootGridEntry.cs
- PowerModeChangedEventArgs.cs
- TextReader.cs
- ThrowHelper.cs
- SpecialFolderEnumConverter.cs
- Interlocked.cs
- ListItemConverter.cs
- HtmlInputControl.cs
- PriorityRange.cs
- DocumentXmlWriter.cs
- PageHandlerFactory.cs
- odbcmetadatacollectionnames.cs