Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceMetadataExtension.cs
- HwndAppCommandInputProvider.cs
- DataBoundControlAdapter.cs
- EntityWrapper.cs
- BookmarkEventArgs.cs
- BorderGapMaskConverter.cs
- OleDbDataReader.cs
- KnownTypeDataContractResolver.cs
- SafeNativeMethods.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- MsmqMessageSerializationFormat.cs
- BasePattern.cs
- StagingAreaInputItem.cs
- Hyperlink.cs
- BinarySerializer.cs
- SubstitutionList.cs
- RequestCacheEntry.cs
- MatrixKeyFrameCollection.cs
- DataRecordObjectView.cs
- StructuredType.cs
- XmlValidatingReaderImpl.cs
- CompilationAssemblyInstallComponent.cs
- X509WindowsSecurityToken.cs
- ContentType.cs
- EventMappingSettings.cs
- SizeF.cs
- FixedDocumentPaginator.cs
- ChannelFactory.cs
- UInt64.cs
- ClientSideProviderDescription.cs
- BrowsableAttribute.cs
- Empty.cs
- DesignerExtenders.cs
- DbProviderConfigurationHandler.cs
- Configuration.cs
- DigitalSignatureProvider.cs
- DeobfuscatingStream.cs
- NodeLabelEditEvent.cs
- SoundPlayer.cs
- infer.cs
- Container.cs
- PerformanceCounterCategory.cs
- ToolStripManager.cs
- ToolBarOverflowPanel.cs
- AppSettingsReader.cs
- Figure.cs
- TextBox.cs
- SmiEventSink.cs
- Utils.cs
- EncodingNLS.cs
- ResourceExpressionBuilder.cs
- TableParagraph.cs
- Control.cs
- followingsibling.cs
- EntryIndex.cs
- ProfileModule.cs
- ShapeTypeface.cs
- Constraint.cs
- OrderedDictionaryStateHelper.cs
- XmlSecureResolver.cs
- ItemCollection.cs
- FontConverter.cs
- RelationshipFixer.cs
- AsnEncodedData.cs
- ConfigurationProperty.cs
- DataGridViewRowHeaderCell.cs
- Action.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- BamlTreeUpdater.cs
- RoleService.cs
- HtmlContainerControl.cs
- Speller.cs
- Random.cs
- LinqExpressionNormalizer.cs
- SettingsSavedEventArgs.cs
- ReadOnlyCollectionBase.cs
- MatrixAnimationBase.cs
- UrlMappingsSection.cs
- SendActivityDesignerTheme.cs
- TemplateControl.cs
- WebServiceClientProxyGenerator.cs
- OdbcPermission.cs
- TextTabProperties.cs
- TemplateKeyConverter.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ServiceDeploymentInfo.cs
- UserControl.cs
- EntityDataSourceValidationException.cs
- ObjectComplexPropertyMapping.cs
- RootDesignerSerializerAttribute.cs
- DataListItemEventArgs.cs
- AssemblySettingAttributes.cs
- CopyOfAction.cs
- PersonalizationDictionary.cs
- TemplatedControlDesigner.cs
- StringCollection.cs
- WebServiceData.cs
- ControlBuilder.cs
- CaseInsensitiveComparer.cs
- Error.cs