Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDeleteVerb.cs / 1 / WebPartDeleteVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_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
- MergeLocalizationDirectives.cs
- _NegoState.cs
- EntitySetDataBindingList.cs
- DefaultSection.cs
- EnumValidator.cs
- UnauthorizedAccessException.cs
- ReflectionPermission.cs
- MenuItemBindingCollection.cs
- ShapingWorkspace.cs
- HyperLinkColumn.cs
- DataTable.cs
- __Filters.cs
- ToolStripManager.cs
- MethodMessage.cs
- input.cs
- WebPartEditorApplyVerb.cs
- DBConnection.cs
- ChtmlPhoneCallAdapter.cs
- PolyBezierSegment.cs
- MetadataLocation.cs
- ViewEvent.cs
- SourceInterpreter.cs
- DataColumnMappingCollection.cs
- PropertyGridEditorPart.cs
- ISO2022Encoding.cs
- uribuilder.cs
- DataGridViewImageColumn.cs
- BitmapEffectDrawingContextState.cs
- processwaithandle.cs
- InternalBase.cs
- Animatable.cs
- DataMemberFieldEditor.cs
- MetaModel.cs
- SchemeSettingElement.cs
- HelpKeywordAttribute.cs
- TitleStyle.cs
- StateMachineHelpers.cs
- InputLanguageEventArgs.cs
- MailWriter.cs
- CFStream.cs
- MultiAsyncResult.cs
- DirectionalLight.cs
- ProxyWebPart.cs
- TextServicesCompartmentEventSink.cs
- ETagAttribute.cs
- DesignerLabelAdapter.cs
- DispatcherHookEventArgs.cs
- StructuralComparisons.cs
- Number.cs
- ObjectComplexPropertyMapping.cs
- ChannelOptions.cs
- HtmlForm.cs
- Operand.cs
- DesignerHelpers.cs
- RedBlackList.cs
- CornerRadius.cs
- StaticSiteMapProvider.cs
- KeyPressEvent.cs
- XamlPoint3DCollectionSerializer.cs
- FtpCachePolicyElement.cs
- CompilationRelaxations.cs
- TheQuery.cs
- login.cs
- ActivityIdHeader.cs
- Set.cs
- RoutedEventHandlerInfo.cs
- CommandValueSerializer.cs
- TypeSystem.cs
- ShapingEngine.cs
- PersistChildrenAttribute.cs
- WebPartHelpVerb.cs
- TextLineResult.cs
- ProgressBarBrushConverter.cs
- ExpandableObjectConverter.cs
- DisplayInformation.cs
- Assert.cs
- XmlWrappingReader.cs
- XmlUnspecifiedAttribute.cs
- DataAdapter.cs
- StyleSheetRefUrlEditor.cs
- OleDbMetaDataFactory.cs
- PrintController.cs
- ObjectItemAttributeAssemblyLoader.cs
- DurableRuntimeValidator.cs
- LayoutInformation.cs
- UnSafeCharBuffer.cs
- HostingEnvironmentSection.cs
- NamespaceImport.cs
- TranslateTransform3D.cs
- ScriptReferenceEventArgs.cs
- XmlSchemaElement.cs
- BaseTransportHeaders.cs
- RequestCache.cs
- Mapping.cs
- PrintingPermissionAttribute.cs
- ConfigurationStrings.cs
- TypedServiceOperationListItem.cs
- BinHexDecoder.cs
- EventOpcode.cs
- ExceptionTrace.cs