Code:
/ FX-1434 / FX-1434 / 1.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
- WindowPattern.cs
- COAUTHINFO.cs
- UnorderedHashRepartitionStream.cs
- ContourSegment.cs
- InvokeProviderWrapper.cs
- ZipIORawDataFileBlock.cs
- HtmlGenericControl.cs
- SpotLight.cs
- ZeroOpNode.cs
- ServiceDeploymentInfo.cs
- SettingsContext.cs
- QuotedStringWriteStateInfo.cs
- BamlTreeNode.cs
- StorageEntityContainerMapping.cs
- SvcMapFileSerializer.cs
- ParagraphResult.cs
- PrinterUnitConvert.cs
- FrugalList.cs
- DataGridViewCheckBoxCell.cs
- WebPartConnectVerb.cs
- EntityKeyElement.cs
- HtmlControlPersistable.cs
- CustomErrorsSectionWrapper.cs
- XappLauncher.cs
- CompatibleComparer.cs
- CodePageUtils.cs
- DataGridTextBox.cs
- VariableExpressionConverter.cs
- PrivateFontCollection.cs
- BoolExpr.cs
- XmlAttributeHolder.cs
- FirstMatchCodeGroup.cs
- XmlCharCheckingReader.cs
- TemplateBindingExtension.cs
- DataGridViewColumnConverter.cs
- SqlRowUpdatingEvent.cs
- FixedSOMElement.cs
- SymLanguageVendor.cs
- PerformanceCounterLib.cs
- DesignerPerfEventProvider.cs
- Stream.cs
- PolicyManager.cs
- MetadataArtifactLoader.cs
- DragEventArgs.cs
- TraceUtils.cs
- ServiceDeploymentInfo.cs
- Point4D.cs
- BindingGroup.cs
- COM2TypeInfoProcessor.cs
- sqlstateclientmanager.cs
- MD5CryptoServiceProvider.cs
- XmlEnumAttribute.cs
- ImageDrawing.cs
- ArrayList.cs
- AssertFilter.cs
- TextProperties.cs
- MonitoringDescriptionAttribute.cs
- LineServicesCallbacks.cs
- _ConnectionGroup.cs
- Vector3DIndependentAnimationStorage.cs
- HierarchicalDataBoundControl.cs
- DataStorage.cs
- OdbcConnectionOpen.cs
- DetailsViewDeleteEventArgs.cs
- XmlUtil.cs
- IisHelper.cs
- NeutralResourcesLanguageAttribute.cs
- StylusEventArgs.cs
- TabControl.cs
- FontUnit.cs
- RectIndependentAnimationStorage.cs
- BinaryQueryOperator.cs
- IChannel.cs
- SqlCharStream.cs
- ViewBox.cs
- TextDecorations.cs
- XmlDataCollection.cs
- UIElementParaClient.cs
- SizeAnimationBase.cs
- SqlUnionizer.cs
- RuntimeArgumentHandle.cs
- TraceInternal.cs
- ImageCollectionEditor.cs
- HwndSourceParameters.cs
- CompilationUtil.cs
- SpecialFolderEnumConverter.cs
- TimeoutValidationAttribute.cs
- MediaCommands.cs
- SqlBuilder.cs
- ExtenderProvidedPropertyAttribute.cs
- AccessViolationException.cs
- EastAsianLunisolarCalendar.cs
- DataGridViewRowHeaderCell.cs
- WebServiceTypeData.cs
- SecureUICommand.cs
- PropertyMetadata.cs
- TreeNode.cs
- StringWriter.cs
- MatrixValueSerializer.cs
- ContractNamespaceAttribute.cs