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
- UserControlParser.cs
- Style.cs
- DateTimeConverter.cs
- WebPartUserCapability.cs
- Stacktrace.cs
- ZipIOLocalFileDataDescriptor.cs
- OrthographicCamera.cs
- Grammar.cs
- CodeDefaultValueExpression.cs
- HebrewCalendar.cs
- SqlClientMetaDataCollectionNames.cs
- TextTreeInsertUndoUnit.cs
- SectionVisual.cs
- FunctionQuery.cs
- DefaultShape.cs
- XmlSchemaSubstitutionGroup.cs
- WorkflowDurableInstance.cs
- IFlowDocumentViewer.cs
- TextTreeUndo.cs
- UpdateProgress.cs
- FilteredSchemaElementLookUpTable.cs
- AccessibilityHelperForXpWin2k3.cs
- ScriptingRoleServiceSection.cs
- DependencyObjectPropertyDescriptor.cs
- HttpListenerPrefixCollection.cs
- ApplicationSettingsBase.cs
- OdbcParameterCollection.cs
- ToolStrip.cs
- PackageRelationshipSelector.cs
- Exceptions.cs
- FormViewCommandEventArgs.cs
- ObjectSecurity.cs
- PenLineJoinValidation.cs
- IItemContainerGenerator.cs
- SubqueryTrackingVisitor.cs
- Line.cs
- StateManagedCollection.cs
- DesignerView.Commands.cs
- TrackingStringDictionary.cs
- _ShellExpression.cs
- ScrollBarRenderer.cs
- SQLDecimal.cs
- StylusPointProperty.cs
- StdRegProviderWrapper.cs
- SoapServerMethod.cs
- ExpressionBindingCollection.cs
- AdapterDictionary.cs
- TailCallAnalyzer.cs
- HotSpot.cs
- MouseGesture.cs
- WebPartManagerDesigner.cs
- FlowPosition.cs
- DocumentViewerBaseAutomationPeer.cs
- FlowLayoutPanel.cs
- Set.cs
- SqlConnectionHelper.cs
- SecurityElement.cs
- SortAction.cs
- PropertyGroupDescription.cs
- ButtonFlatAdapter.cs
- Missing.cs
- RemotingConfigParser.cs
- IncrementalCompileAnalyzer.cs
- InvalidCastException.cs
- QilReplaceVisitor.cs
- MexHttpsBindingCollectionElement.cs
- EncodingNLS.cs
- KeyTime.cs
- VariableDesigner.xaml.cs
- HashCryptoHandle.cs
- ExpressionPrinter.cs
- EventMappingSettingsCollection.cs
- LabelTarget.cs
- DataSourceDescriptorCollection.cs
- WebPartRestoreVerb.cs
- XPathItem.cs
- GestureRecognizer.cs
- TemplateControlBuildProvider.cs
- FormsAuthenticationUser.cs
- ScriptingJsonSerializationSection.cs
- TableAdapterManagerNameHandler.cs
- TextDecorationCollection.cs
- DesignerDataTable.cs
- SocketException.cs
- BamlWriter.cs
- CodeLabeledStatement.cs
- Tile.cs
- SudsWriter.cs
- SchemaCollectionPreprocessor.cs
- CellParaClient.cs
- WindowsGraphicsCacheManager.cs
- InputLanguageCollection.cs
- FloaterParagraph.cs
- PopOutPanel.cs
- SchemaConstraints.cs
- RichTextBox.cs
- SqlReorderer.cs
- XmlDocumentSchema.cs
- TypeConverterHelper.cs
- ChangesetResponse.cs