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
- PointAnimationUsingKeyFrames.cs
- BindableAttribute.cs
- CodeIndexerExpression.cs
- IFlowDocumentViewer.cs
- SerialErrors.cs
- Mouse.cs
- XmlHierarchyData.cs
- fixedPageContentExtractor.cs
- XmlNamespaceMappingCollection.cs
- DriveInfo.cs
- BitmapEffectvisualstate.cs
- RunInstallerAttribute.cs
- CredentialCache.cs
- AssemblyCollection.cs
- XmlWriterSettings.cs
- Triangle.cs
- TriState.cs
- PropertySet.cs
- ChainOfResponsibility.cs
- MimePart.cs
- MimeMapping.cs
- HMACSHA1.cs
- IntSecurity.cs
- SmiEventStream.cs
- OptimizedTemplateContent.cs
- BookmarkUndoUnit.cs
- StringFreezingAttribute.cs
- IndicShape.cs
- XPathSelfQuery.cs
- ColorConverter.cs
- BitmapEffectGroup.cs
- ObjectListCommandCollection.cs
- WebPartVerb.cs
- Stroke.cs
- TemplateField.cs
- XmlSchemaDatatype.cs
- XmlHelper.cs
- Base64Stream.cs
- ListItemCollection.cs
- TransactionInformation.cs
- TypeDescriptorContext.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ReadWriteObjectLock.cs
- ReaderWriterLockSlim.cs
- BinaryNode.cs
- Image.cs
- BufferedStream.cs
- DispatcherHooks.cs
- SmiEventSink.cs
- StringValidatorAttribute.cs
- ImageInfo.cs
- ColumnResult.cs
- RecommendedAsConfigurableAttribute.cs
- RegexCode.cs
- MarkupCompilePass1.cs
- DataPointer.cs
- ExpressionNode.cs
- ToolStripSeparator.cs
- EntityConnectionStringBuilder.cs
- ObjectIDGenerator.cs
- SqlBuffer.cs
- UnaryOperationBinder.cs
- BaseInfoTable.cs
- ReaderWriterLock.cs
- StrokeCollectionDefaultValueFactory.cs
- SliderAutomationPeer.cs
- ConfigurationPermission.cs
- IsolatedStorageFileStream.cs
- HttpCacheVaryByContentEncodings.cs
- TimeSpanStorage.cs
- SQLMoney.cs
- AdRotator.cs
- DocumentReferenceCollection.cs
- Trace.cs
- PageThemeBuildProvider.cs
- TrustLevelCollection.cs
- TouchFrameEventArgs.cs
- ConnectionString.cs
- GeneralTransform2DTo3D.cs
- Binding.cs
- QueryOptionExpression.cs
- EventManager.cs
- QilXmlWriter.cs
- SizeIndependentAnimationStorage.cs
- Optimizer.cs
- EmptyEnumerator.cs
- EntityConnectionStringBuilderItem.cs
- AuthorizationRuleCollection.cs
- ToolStripPanelRow.cs
- ExpressionTextBox.xaml.cs
- DataPagerFieldItem.cs
- SchemaObjectWriter.cs
- DesignerExtenders.cs
- Inflater.cs
- TdsParserSessionPool.cs
- CultureMapper.cs
- PropertyValue.cs
- StickyNote.cs
- ClassHandlersStore.cs
- WebPermission.cs