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
- WebPartConnectionsConnectVerb.cs
- StrokeNodeOperations2.cs
- RbTree.cs
- SessionEndingCancelEventArgs.cs
- DBConnection.cs
- AppLevelCompilationSectionCache.cs
- InputScopeConverter.cs
- ActiveDesignSurfaceEvent.cs
- CommandValueSerializer.cs
- SerializationObjectManager.cs
- SessionSwitchEventArgs.cs
- GeneralTransform3DGroup.cs
- CompareInfo.cs
- ByteFacetDescriptionElement.cs
- RawStylusInputCustomDataList.cs
- NativeCppClassAttribute.cs
- XpsFontSerializationService.cs
- DoubleKeyFrameCollection.cs
- PrintingPermission.cs
- IgnoreDataMemberAttribute.cs
- PreservationFileReader.cs
- WpfPayload.cs
- IteratorDescriptor.cs
- FlowStep.cs
- GridViewRow.cs
- ComponentEditorForm.cs
- CheckBoxStandardAdapter.cs
- Converter.cs
- DBSchemaRow.cs
- ResolvedKeyFrameEntry.cs
- MimeTypeAttribute.cs
- EndpointAddressElementBase.cs
- AnnotationComponentManager.cs
- EntityDataSourceDataSelectionPanel.cs
- TreeNodeSelectionProcessor.cs
- TracingConnection.cs
- TextUtf8RawTextWriter.cs
- Policy.cs
- DocumentReferenceCollection.cs
- PriorityRange.cs
- DelegateSerializationHolder.cs
- ResourceKey.cs
- ReadOnlyCollectionBuilder.cs
- AlternationConverter.cs
- _ProxyChain.cs
- PauseStoryboard.cs
- TransferRequestHandler.cs
- CriticalFinalizerObject.cs
- BaseTemplateBuildProvider.cs
- DataGridViewComboBoxEditingControl.cs
- NotifyCollectionChangedEventArgs.cs
- CodeTypeConstructor.cs
- EventLogConfiguration.cs
- RestHandler.cs
- SqlCaseSimplifier.cs
- MultilineStringConverter.cs
- ImageIndexConverter.cs
- FrameworkContentElement.cs
- WebContentFormatHelper.cs
- BaseResourcesBuildProvider.cs
- ServiceModelTimeSpanValidator.cs
- NotifyCollectionChangedEventArgs.cs
- RubberbandSelector.cs
- EntityException.cs
- HttpListenerElement.cs
- ProviderConnectionPoint.cs
- CodePageUtils.cs
- MetadataArtifactLoaderCompositeFile.cs
- DesignTimeTemplateParser.cs
- KeyInstance.cs
- EventLogSession.cs
- SqlFileStream.cs
- DataGridViewRowEventArgs.cs
- PointAnimation.cs
- CollectionsUtil.cs
- CompilerLocalReference.cs
- Model3D.cs
- ContentPresenter.cs
- URLBuilder.cs
- RuleRef.cs
- ControlValuePropertyAttribute.cs
- DataGridViewCheckBoxColumn.cs
- XmlEntity.cs
- UnionExpr.cs
- SqlDataSourceEnumerator.cs
- HMACRIPEMD160.cs
- DispatchChannelSink.cs
- DeadCharTextComposition.cs
- WebPartVerb.cs
- BaseTemplatedMobileComponentEditor.cs
- OdbcConnectionPoolProviderInfo.cs
- OperationCanceledException.cs
- Pool.cs
- AccessedThroughPropertyAttribute.cs
- PageThemeCodeDomTreeGenerator.cs
- DbCommandTree.cs
- CoTaskMemHandle.cs
- Comparer.cs
- SerializationStore.cs
- FixedSOMContainer.cs