Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartEditorCancelVerb.cs / 1 / WebPartEditorCancelVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartEditorCancelVerb : WebPartActionVerb {
// 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.WebPartEditorCancelVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartEditorCancelVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartEditorCancelVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartEditorCancelVerb_Text) : (string)o;
}
set {
ViewState["Text"] = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartEditorCancelVerb : WebPartActionVerb {
// 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.WebPartEditorCancelVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartEditorCancelVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartEditorCancelVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartEditorCancelVerb_Text) : (string)o;
}
set {
ViewState["Text"] = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringUtil.cs
- Configuration.cs
- Int32CollectionValueSerializer.cs
- ContextMenuStripGroupCollection.cs
- TaskFormBase.cs
- TableLayoutColumnStyleCollection.cs
- VerticalAlignConverter.cs
- UpdateRecord.cs
- PackagePartCollection.cs
- ReadContentAsBinaryHelper.cs
- RightsManagementProvider.cs
- BasicSecurityProfileVersion.cs
- AttributeAction.cs
- ControlDesignerState.cs
- SR.cs
- WebPartExportVerb.cs
- BinaryNode.cs
- PointValueSerializer.cs
- ChannelEndpointElementCollection.cs
- RemotingSurrogateSelector.cs
- SmtpClient.cs
- CounterCreationDataConverter.cs
- CommandConverter.cs
- Int64KeyFrameCollection.cs
- ColumnResult.cs
- CodeChecksumPragma.cs
- StickyNoteContentControl.cs
- SmtpDigestAuthenticationModule.cs
- XmlSerializerNamespaces.cs
- SpotLight.cs
- ActivityInstance.cs
- Pair.cs
- SerTrace.cs
- CollectionChangeEventArgs.cs
- sqlcontext.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- BamlReader.cs
- ProcessingInstructionAction.cs
- MemberMemberBinding.cs
- SqlTypeSystemProvider.cs
- JoinTreeSlot.cs
- GridEntryCollection.cs
- DockingAttribute.cs
- RichTextBoxContextMenu.cs
- XmlSchemaInferenceException.cs
- UInt16.cs
- DataMemberFieldEditor.cs
- LocalizedNameDescriptionPair.cs
- DataSourceXmlTextReader.cs
- OneOfElement.cs
- List.cs
- CharKeyFrameCollection.cs
- AnnotationComponentManager.cs
- StaticResourceExtension.cs
- ObjectListGeneralPage.cs
- QueryStatement.cs
- ThumbButtonInfoCollection.cs
- PropertyTabChangedEvent.cs
- isolationinterop.cs
- DataControlPagerLinkButton.cs
- HiddenField.cs
- ReferenceCountedObject.cs
- StrongNameKeyPair.cs
- PropertyKey.cs
- ScrollEvent.cs
- XPathBuilder.cs
- PolyQuadraticBezierSegment.cs
- MaterialGroup.cs
- AtlasWeb.Designer.cs
- ObjectItemConventionAssemblyLoader.cs
- StylusEditingBehavior.cs
- Int32KeyFrameCollection.cs
- EncoderFallback.cs
- TreeNodeClickEventArgs.cs
- EnumValidator.cs
- BuildResultCache.cs
- ListDictionary.cs
- SingleStorage.cs
- ConfigViewGenerator.cs
- StorageModelBuildProvider.cs
- FontStyles.cs
- ApplicationSettingsBase.cs
- XmlChoiceIdentifierAttribute.cs
- CompModHelpers.cs
- FlowLayout.cs
- AlphaSortedEnumConverter.cs
- XmlArrayAttribute.cs
- SocketException.cs
- _AutoWebProxyScriptWrapper.cs
- FontEmbeddingManager.cs
- SafeFileHandle.cs
- ContextMenu.cs
- DecoderFallbackWithFailureFlag.cs
- StaticFileHandler.cs
- OleDbInfoMessageEvent.cs
- NumericUpDownAcceleration.cs
- ReadOnlyTernaryTree.cs
- ScrollChrome.cs
- EmptyStringExpandableObjectConverter.cs
- PersonalizationEntry.cs