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
- Win32.cs
- EventArgs.cs
- ArgumentElement.cs
- TextElementCollection.cs
- EDesignUtil.cs
- MetadataReference.cs
- StringFreezingAttribute.cs
- CodeMethodReturnStatement.cs
- IteratorFilter.cs
- RelOps.cs
- SemanticResolver.cs
- CompilationLock.cs
- LoginCancelEventArgs.cs
- SoapHeaderException.cs
- RtfControlWordInfo.cs
- PagerSettings.cs
- SqlConnectionString.cs
- HttpCookie.cs
- Renderer.cs
- ControlParameter.cs
- CacheDependency.cs
- SapiRecoContext.cs
- XmlSchemaSet.cs
- SystemTcpStatistics.cs
- NamespaceInfo.cs
- ClockGroup.cs
- EndpointAddressMessageFilter.cs
- FullTextState.cs
- DataSourceHelper.cs
- ColorConverter.cs
- AppDomainUnloadedException.cs
- ToolStripStatusLabel.cs
- DrawingState.cs
- SafeTimerHandle.cs
- XmlSchemas.cs
- OracleBinary.cs
- ObjectDataSourceStatusEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- Utils.cs
- TimeSpan.cs
- UrlPropertyAttribute.cs
- MarkupCompiler.cs
- WinEventTracker.cs
- Transform.cs
- EventDescriptor.cs
- ReplacementText.cs
- UshortList2.cs
- WorkflowViewService.cs
- _LocalDataStoreMgr.cs
- RuntimeConfigLKG.cs
- ComEventsInfo.cs
- __TransparentProxy.cs
- ScrollPattern.cs
- PersonalizableTypeEntry.cs
- Parser.cs
- WindowsPrincipal.cs
- SSmlParser.cs
- PropertyEmitterBase.cs
- EventSinkHelperWriter.cs
- VariableAction.cs
- WebPartDisplayMode.cs
- CheckBoxAutomationPeer.cs
- PreviewPageInfo.cs
- UniqueIdentifierService.cs
- SqlFunctionAttribute.cs
- UIElement.cs
- SettingsPropertyValue.cs
- Array.cs
- BufferAllocator.cs
- CacheAxisQuery.cs
- TracingConnectionInitiator.cs
- StorageFunctionMapping.cs
- ContextTokenTypeConverter.cs
- SafeMILHandle.cs
- Proxy.cs
- WinEventWrap.cs
- DataGridColumnHeaderCollection.cs
- RemoteWebConfigurationHost.cs
- SystemException.cs
- CompilerTypeWithParams.cs
- TemplateBindingExpression.cs
- TreeNodeClickEventArgs.cs
- FilteredAttributeCollection.cs
- OleDbErrorCollection.cs
- CollectionViewSource.cs
- AssemblyInfo.cs
- StylusPlugInCollection.cs
- CompoundFileStorageReference.cs
- TreeViewItem.cs
- FixedSOMFixedBlock.cs
- Html32TextWriter.cs
- DataGridViewRowHeaderCell.cs
- TabControl.cs
- TagPrefixAttribute.cs
- EncryptedKey.cs
- DispatcherExceptionFilterEventArgs.cs
- PropertyChangeTracker.cs
- TileModeValidation.cs
- ToolboxItemAttribute.cs
- ContentFileHelper.cs