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
- TabControlCancelEvent.cs
- EventWaitHandle.cs
- DataError.cs
- ElementNotEnabledException.cs
- _NestedMultipleAsyncResult.cs
- MarkupCompiler.cs
- Psha1DerivedKeyGeneratorHelper.cs
- AssociationTypeEmitter.cs
- RestHandler.cs
- XPathNodeList.cs
- AdRotator.cs
- LookupNode.cs
- Timeline.cs
- DesignTimeParseData.cs
- PageThemeBuildProvider.cs
- TreeViewItem.cs
- WinInet.cs
- SqlDependency.cs
- InputEventArgs.cs
- ClosableStream.cs
- ZipPackagePart.cs
- WaitHandleCannotBeOpenedException.cs
- BitmapEffectDrawing.cs
- Window.cs
- LogicalTreeHelper.cs
- MultiBinding.cs
- FontFamily.cs
- StorageEntitySetMapping.cs
- AuthenticationService.cs
- InstanceHandleConflictException.cs
- Buffer.cs
- ManifestBasedResourceGroveler.cs
- DbConnectionStringBuilder.cs
- MessageSecurityVersion.cs
- BinaryUtilClasses.cs
- OutputCacheProfile.cs
- DataViewSettingCollection.cs
- SoapFormatExtensions.cs
- OdbcParameterCollection.cs
- ResourcesBuildProvider.cs
- ConfigurationCollectionAttribute.cs
- ContactManager.cs
- LiteralControl.cs
- SiteMembershipCondition.cs
- TabItemWrapperAutomationPeer.cs
- ConfigurationElement.cs
- ObjectSelectorEditor.cs
- ContainsRowNumberChecker.cs
- ProviderBase.cs
- OlePropertyStructs.cs
- RegisteredDisposeScript.cs
- DbProviderFactoriesConfigurationHandler.cs
- WebSysDescriptionAttribute.cs
- BypassElementCollection.cs
- DbDataRecord.cs
- TagPrefixAttribute.cs
- FormsAuthenticationModule.cs
- ITreeGenerator.cs
- SpellCheck.cs
- MarkerProperties.cs
- PropertyValueUIItem.cs
- FastPropertyAccessor.cs
- DocumentReference.cs
- UpdateTracker.cs
- MultiTrigger.cs
- FromReply.cs
- Fx.cs
- SQLRoleProvider.cs
- NonSerializedAttribute.cs
- OracleRowUpdatedEventArgs.cs
- EntityConnectionStringBuilder.cs
- CapiNative.cs
- CollectionViewGroupRoot.cs
- QuestionEventArgs.cs
- XPathBinder.cs
- HashCoreRequest.cs
- PackWebRequest.cs
- securitycriticaldata.cs
- LocalizableAttribute.cs
- RijndaelManagedTransform.cs
- QueryLifecycle.cs
- ModelTreeEnumerator.cs
- AtlasWeb.Designer.cs
- FixedSOMPage.cs
- HexParser.cs
- RemoteWebConfigurationHost.cs
- StronglyTypedResourceBuilder.cs
- IChannel.cs
- XmlQualifiedName.cs
- ResourceReferenceExpression.cs
- RepeaterItemEventArgs.cs
- ComNativeDescriptor.cs
- RelationalExpressions.cs
- ClientBuildManagerCallback.cs
- PageContentCollection.cs
- Accessible.cs
- QueryContext.cs
- IsolatedStorageFilePermission.cs
- GeneralTransformCollection.cs
- TemplateInstanceAttribute.cs