Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartHelpVerb.cs / 1 / WebPartHelpVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartHelpVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartHelpVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartHelpVerb_Text); } return _defaultText; } } // Properties must look at viewstate directly instead of the property in the base class, // so we can distinguish between an unset property and a property set to String.Empty. [ WebSysDefaultValue(SR.WebPartHelpVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartHelpVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (string)o; } set { ViewState["Text"] = value; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CmsInterop.cs
- SqlNotificationRequest.cs
- ContentPresenter.cs
- GenericQueueSurrogate.cs
- NameTable.cs
- PageCatalogPart.cs
- ControlSerializer.cs
- Point4D.cs
- ButtonBase.cs
- safelinkcollection.cs
- CfgParser.cs
- IntegerFacetDescriptionElement.cs
- ComAdminInterfaces.cs
- ComponentChangedEvent.cs
- DataKey.cs
- StringFreezingAttribute.cs
- PointAnimationClockResource.cs
- InlinedLocationReference.cs
- EntityClientCacheKey.cs
- ScaleTransform.cs
- ApplicationActivator.cs
- DataStreamFromComStream.cs
- TriggerCollection.cs
- EmptyStringExpandableObjectConverter.cs
- CfgParser.cs
- MarkupCompilePass1.cs
- XsltArgumentList.cs
- odbcmetadatacollectionnames.cs
- ListViewCancelEventArgs.cs
- IndexedEnumerable.cs
- UiaCoreProviderApi.cs
- ImageBrush.cs
- RadioButtonPopupAdapter.cs
- Renderer.cs
- ColumnMapProcessor.cs
- LogicalExpr.cs
- SqlAliaser.cs
- XmlSigningNodeWriter.cs
- XmlStrings.cs
- ModelPropertyDescriptor.cs
- ResourceExpressionBuilder.cs
- GridItemPatternIdentifiers.cs
- RelationshipType.cs
- CodePageEncoding.cs
- MenuEventArgs.cs
- CalendarAutoFormatDialog.cs
- SiteMapNodeCollection.cs
- ManipulationVelocities.cs
- FixedPosition.cs
- GridViewAutomationPeer.cs
- BaseCodeDomTreeGenerator.cs
- WebEventCodes.cs
- DatatypeImplementation.cs
- ItemCheckEvent.cs
- InputLanguage.cs
- Transform.cs
- EtwTrackingBehavior.cs
- SqlBuilder.cs
- MatrixStack.cs
- PrePrepareMethodAttribute.cs
- XhtmlTextWriter.cs
- ProcessModelSection.cs
- ScalarRestriction.cs
- HttpApplicationFactory.cs
- TileBrush.cs
- MemberRelationshipService.cs
- ReferenceEqualityComparer.cs
- ColumnReorderedEventArgs.cs
- ValidationUtility.cs
- ProfileEventArgs.cs
- ListDictionaryInternal.cs
- StringValueSerializer.cs
- TransformValueSerializer.cs
- ConfigurationSectionHelper.cs
- RegistryDataKey.cs
- TextEditorSelection.cs
- ToolTipAutomationPeer.cs
- XmlCountingReader.cs
- WebPartUtil.cs
- ItemCheckedEvent.cs
- Binding.cs
- ProcessModuleCollection.cs
- UriScheme.cs
- IssuedTokenServiceElement.cs
- XmlConvert.cs
- StringFreezingAttribute.cs
- SelectorAutomationPeer.cs
- _ProxyRegBlob.cs
- XmlWriterSettings.cs
- MailWebEventProvider.cs
- TextServicesProperty.cs
- initElementDictionary.cs
- BitmapEffectCollection.cs
- EventPrivateKey.cs
- BrowserInteropHelper.cs
- OciHandle.cs
- FileClassifier.cs
- ServiceTimeoutsElement.cs
- FullTextState.cs
- DataGridDesigner.cs