Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartEditVerb.cs / 1 / WebPartEditVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartEditVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartEditVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartEditVerb_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.WebPartEditVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartEditVerb_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
- KeyValuePair.cs
- WindowsEditBox.cs
- MouseGestureConverter.cs
- ResourcePart.cs
- CodeChecksumPragma.cs
- LinqDataView.cs
- SimpleRecyclingCache.cs
- DialogResultConverter.cs
- LocalsItemDescription.cs
- CornerRadiusConverter.cs
- ContractDescription.cs
- HostedHttpRequestAsyncResult.cs
- COM2ComponentEditor.cs
- ProjectionRewriter.cs
- StyleBamlTreeBuilder.cs
- Nullable.cs
- XmlSchemaObjectTable.cs
- tibetanshape.cs
- PhonemeEventArgs.cs
- TrailingSpaceComparer.cs
- _SslSessionsCache.cs
- DurableOperationContext.cs
- ToolStripSplitStackLayout.cs
- AuthorizationRuleCollection.cs
- SponsorHelper.cs
- Icon.cs
- TimeEnumHelper.cs
- HttpCookie.cs
- FolderLevelBuildProvider.cs
- ExpressionBinding.cs
- Style.cs
- XmlAnyElementAttributes.cs
- ChannelSettingsElement.cs
- Preprocessor.cs
- SecurityUtils.cs
- StylusPointProperties.cs
- HttpClientChannel.cs
- ListViewCommandEventArgs.cs
- MembershipSection.cs
- DockProviderWrapper.cs
- SortKey.cs
- SmiEventSink_Default.cs
- ConnectionAcceptor.cs
- UTF7Encoding.cs
- CollectionViewGroupInternal.cs
- JsonFormatGeneratorStatics.cs
- ToolStripDesignerAvailabilityAttribute.cs
- GridToolTip.cs
- DbMetaDataCollectionNames.cs
- StateDesigner.Helpers.cs
- GeneratedContractType.cs
- AutomationElement.cs
- MobileControlBuilder.cs
- DataGridToolTip.cs
- DrawingAttributeSerializer.cs
- XmlNamedNodeMap.cs
- PropertyStore.cs
- linebase.cs
- DrawingCollection.cs
- DisplayMemberTemplateSelector.cs
- SapiRecoInterop.cs
- XComponentModel.cs
- OdbcCommandBuilder.cs
- ContextStaticAttribute.cs
- OleCmdHelper.cs
- KeyValueConfigurationElement.cs
- NonVisualControlAttribute.cs
- NotSupportedException.cs
- PathFigure.cs
- RowType.cs
- listitem.cs
- ByteKeyFrameCollection.cs
- SqlNamer.cs
- ImageButton.cs
- RotateTransform.cs
- XmlChildNodes.cs
- CompositionAdorner.cs
- RoleManagerSection.cs
- BeginStoryboard.cs
- PropertyExpression.cs
- EnumerableRowCollectionExtensions.cs
- Debug.cs
- PersistChildrenAttribute.cs
- EnumerableRowCollection.cs
- DecimalSumAggregationOperator.cs
- AttributeExtensions.cs
- XamlDebuggerXmlReader.cs
- Drawing.cs
- BuilderPropertyEntry.cs
- GridLengthConverter.cs
- ByteArrayHelperWithString.cs
- ADMembershipProvider.cs
- DesignBindingPropertyDescriptor.cs
- DataGridTextBoxColumn.cs
- Model3D.cs
- SQLInt64Storage.cs
- SemanticResolver.cs
- DbConnectionPoolGroupProviderInfo.cs
- GPRECTF.cs
- DataBoundControl.cs