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
- TransformGroup.cs
- IndexingContentUnit.cs
- Switch.cs
- AutomationProperty.cs
- WebScriptMetadataFormatter.cs
- DbModificationClause.cs
- PropertyEntry.cs
- DeclaredTypeElementCollection.cs
- XmlBinaryReader.cs
- IDictionary.cs
- xmlNames.cs
- DrawingBrush.cs
- DataSourceProvider.cs
- DataGridViewComboBoxCell.cs
- MultilineStringEditor.cs
- IndividualDeviceConfig.cs
- GenericIdentity.cs
- CaseStatementProjectedSlot.cs
- XmlILTrace.cs
- OwnerDrawPropertyBag.cs
- NotSupportedException.cs
- RemotingClientProxy.cs
- ItemCheckedEvent.cs
- UriSection.cs
- QueryContinueDragEventArgs.cs
- DataStorage.cs
- TextOutput.cs
- CodeArgumentReferenceExpression.cs
- HtmlWindow.cs
- ColorContext.cs
- BatchServiceHost.cs
- NativeMethods.cs
- HttpCookieCollection.cs
- MobileControlPersister.cs
- Converter.cs
- DoubleAnimationClockResource.cs
- ChtmlPhoneCallAdapter.cs
- StateDesigner.TransitionInfo.cs
- TraceHandlerErrorFormatter.cs
- KeyValueSerializer.cs
- WindowsSpinner.cs
- SiteMap.cs
- SqlDataSourceTableQuery.cs
- Registry.cs
- FormViewInsertEventArgs.cs
- NotificationContext.cs
- ConfigurationSchemaErrors.cs
- _SafeNetHandles.cs
- SafeMILHandle.cs
- SrgsSubset.cs
- UIAgentCrashedException.cs
- RowsCopiedEventArgs.cs
- HttpResponseBase.cs
- ViewCellRelation.cs
- ISCIIEncoding.cs
- IPAddressCollection.cs
- WindowsSpinner.cs
- DateTimeFormatInfoScanner.cs
- PageThemeParser.cs
- PipelineDeploymentState.cs
- DocumentGrid.cs
- Identity.cs
- DesignerOptionService.cs
- CodeAttachEventStatement.cs
- returneventsaver.cs
- QueryActivatableWorkflowsCommand.cs
- FontFaceLayoutInfo.cs
- XmlChoiceIdentifierAttribute.cs
- Hashtable.cs
- FunctionParameter.cs
- SecurityTokenSerializer.cs
- mediaeventshelper.cs
- ImageFormatConverter.cs
- TdsParserStaticMethods.cs
- TextOptionsInternal.cs
- ElementNotEnabledException.cs
- AtomParser.cs
- PersonalizationStateInfo.cs
- JournalEntryListConverter.cs
- controlskin.cs
- TextTreePropertyUndoUnit.cs
- XmlSubtreeReader.cs
- ObjectListItemCollection.cs
- BamlRecordReader.cs
- CanonicalFontFamilyReference.cs
- GenericIdentity.cs
- CombinedGeometry.cs
- StyleSheetRefUrlEditor.cs
- VirtualizedItemProviderWrapper.cs
- XDRSchema.cs
- DPCustomTypeDescriptor.cs
- WorkflowView.cs
- SqlConnectionPoolProviderInfo.cs
- HashJoinQueryOperatorEnumerator.cs
- FamilyCollection.cs
- BulletedListEventArgs.cs
- WMIInterop.cs
- Attachment.cs
- DelegateSerializationHolder.cs
- ManagementException.cs