Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartEditorOkVerb.cs / 1305376 / WebPartEditorOkVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartEditorOKVerb : 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.WebPartEditorOKVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartEditorOKVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartEditorOKVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartEditorOKVerb_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
- OrthographicCamera.cs
- HttpModuleCollection.cs
- Bits.cs
- TreeNodeCollectionEditorDialog.cs
- ConnectionProviderAttribute.cs
- DataObject.cs
- ElementAction.cs
- PngBitmapEncoder.cs
- LiteralControl.cs
- ProtocolElementCollection.cs
- JobStaple.cs
- StrongNameMembershipCondition.cs
- ClientCultureInfo.cs
- cache.cs
- PeerNearMe.cs
- ProtocolsConfigurationEntry.cs
- ScriptComponentDescriptor.cs
- InvalidPrinterException.cs
- InstanceHandle.cs
- MemberProjectedSlot.cs
- DiagnosticsConfiguration.cs
- sqlpipe.cs
- DragEventArgs.cs
- UInt64Storage.cs
- DataGridViewCheckBoxColumn.cs
- FreezableOperations.cs
- TransactedBatchingBehavior.cs
- SqlComparer.cs
- GuidTagList.cs
- SafeNativeMethods.cs
- RadioButtonPopupAdapter.cs
- IndentedWriter.cs
- TreeSet.cs
- TextReturnReader.cs
- Input.cs
- ZipIOExtraField.cs
- SafeRightsManagementSessionHandle.cs
- ProtocolsConfigurationEntry.cs
- JapaneseCalendar.cs
- MetadataUtilsSmi.cs
- SqlSupersetValidator.cs
- CreateUserErrorEventArgs.cs
- DiagnosticsElement.cs
- XmlSchemaExternal.cs
- MailWebEventProvider.cs
- MediaContext.cs
- XmlDocumentSerializer.cs
- ScrollEvent.cs
- BaseAutoFormat.cs
- SizeFConverter.cs
- XmlSchemaRedefine.cs
- CollectionDataContractAttribute.cs
- MeasureItemEvent.cs
- ZipFileInfoCollection.cs
- HtmlSelect.cs
- XsltInput.cs
- DbSetClause.cs
- EventWaitHandleSecurity.cs
- HttpModulesSection.cs
- MenuItemBinding.cs
- ServiceHostingEnvironment.cs
- SourceInterpreter.cs
- CodeIdentifiers.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- HttpCookie.cs
- securitymgrsite.cs
- LineBreakRecord.cs
- InstanceDescriptor.cs
- BitmapPalette.cs
- Color.cs
- Bezier.cs
- UnmanagedMemoryStream.cs
- WindowInteractionStateTracker.cs
- DocumentOrderComparer.cs
- DataBoundControl.cs
- TreeViewEvent.cs
- ParallelTimeline.cs
- TdsParameterSetter.cs
- WebPartVerbsEventArgs.cs
- SortDescriptionCollection.cs
- AsyncPostBackErrorEventArgs.cs
- SetStateEventArgs.cs
- GenericTypeParameterBuilder.cs
- AttributeProviderAttribute.cs
- odbcmetadatacollectionnames.cs
- MasterPage.cs
- PropertyEmitterBase.cs
- MouseCaptureWithinProperty.cs
- TextContainerChangedEventArgs.cs
- IdentityReference.cs
- DefaultValueAttribute.cs
- SpecialFolderEnumConverter.cs
- WebPageTraceListener.cs
- HtmlInputCheckBox.cs
- XamlStackWriter.cs
- ActionNotSupportedException.cs
- XmlQueryOutput.cs
- StringConverter.cs
- FamilyCollection.cs
- SafeFileHandle.cs