Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / ButtonDesigner.cs / 1 / ButtonDesigner.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 ButtonDesigner : ControlDesigner { ////// The designer for the button WebControl. /// ////// /// public override string GetDesignTimeHtml() { Button b = (Button)ViewControl; string originalText = b.Text; Debug.Assert(originalText != null); bool blank = (originalText.Trim().Length == 0); if (blank) { b.Text = "[" + b.ID + "]"; } string html = base.GetDesignTimeHtml(); if (blank) { b.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 button control. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DrawingGroupDrawingContext.cs
- PersonalizableTypeEntry.cs
- EntityViewGenerationAttribute.cs
- DataGridViewRow.cs
- DataGridViewTextBoxCell.cs
- BuildProvidersCompiler.cs
- TcpSocketManager.cs
- BaseValidator.cs
- MethodAccessException.cs
- ExtractedStateEntry.cs
- AddingNewEventArgs.cs
- SoapInteropTypes.cs
- TextDecorationLocationValidation.cs
- OperationContext.cs
- ScriptIgnoreAttribute.cs
- ObjectSecurity.cs
- SerializationHelper.cs
- ChangeConflicts.cs
- SystemIcons.cs
- ImageInfo.cs
- StringUtil.cs
- XsltInput.cs
- SimpleMailWebEventProvider.cs
- MultiPropertyDescriptorGridEntry.cs
- SerializationInfoEnumerator.cs
- TextFormatterHost.cs
- ProviderBase.cs
- ExtentKey.cs
- ApplicationCommands.cs
- RuntimeUtils.cs
- InProcStateClientManager.cs
- CatalogZone.cs
- XmlEntity.cs
- DbConnectionInternal.cs
- MachineKey.cs
- ScrollData.cs
- WebPartDisplayModeCollection.cs
- CompoundFileStreamReference.cs
- NamespaceEmitter.cs
- LocationSectionRecord.cs
- ScriptingAuthenticationServiceSection.cs
- ListViewAutomationPeer.cs
- _ChunkParse.cs
- XamlHttpHandlerFactory.cs
- Compiler.cs
- ComUdtElementCollection.cs
- PlatformCulture.cs
- NativeMethods.cs
- RemoteCryptoDecryptRequest.cs
- ReleaseInstanceMode.cs
- ListViewUpdatedEventArgs.cs
- KeyFrames.cs
- CanonicalXml.cs
- IERequestCache.cs
- Helpers.cs
- ProviderConnectionPointCollection.cs
- HasCopySemanticsAttribute.cs
- RecordConverter.cs
- TypeSystem.cs
- columnmapfactory.cs
- WebPartVerb.cs
- PageSetupDialog.cs
- FlowLayout.cs
- IndexOutOfRangeException.cs
- ColumnWidthChangedEvent.cs
- TextDecorationUnitValidation.cs
- CollectionsUtil.cs
- ProfilePropertyNameValidator.cs
- UIPermission.cs
- ShaperBuffers.cs
- Utils.cs
- OlePropertyStructs.cs
- LoadedOrUnloadedOperation.cs
- HostProtectionException.cs
- WindowsRichEdit.cs
- QilXmlReader.cs
- StrokeNodeEnumerator.cs
- FormatException.cs
- Literal.cs
- DataTemplate.cs
- DefaultAssemblyResolver.cs
- TdsParserStaticMethods.cs
- SchemaMapping.cs
- DocumentApplicationState.cs
- TreeNode.cs
- CodeAssignStatement.cs
- SafeHandles.cs
- ResourceDescriptionAttribute.cs
- PointLight.cs
- ListSourceHelper.cs
- Tokenizer.cs
- ButtonBaseAutomationPeer.cs
- PopupRootAutomationPeer.cs
- SyndicationFeedFormatter.cs
- BindableTemplateBuilder.cs
- DesignerActionUIStateChangeEventArgs.cs
- SByte.cs
- ToolboxItemWrapper.cs
- TypeDescriptorContext.cs
- Vector3DAnimationUsingKeyFrames.cs