Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- SeverityFilter.cs
- MouseGestureValueSerializer.cs
- TriState.cs
- TraversalRequest.cs
- ImpersonationOption.cs
- BufferModesCollection.cs
- HttpRuntimeSection.cs
- BamlWriter.cs
- WasEndpointConfigContainer.cs
- BehaviorEditorPart.cs
- Ops.cs
- unitconverter.cs
- SystemTcpConnection.cs
- InternalResources.cs
- returneventsaver.cs
- NetNamedPipeSecurity.cs
- OdbcReferenceCollection.cs
- SafeEventLogWriteHandle.cs
- DataColumnChangeEvent.cs
- ClaimTypes.cs
- Trace.cs
- MainMenu.cs
- TextElement.cs
- ReaderWriterLock.cs
- TextPattern.cs
- MatrixTransform3D.cs
- RetrieveVirtualItemEventArgs.cs
- TransformCollection.cs
- querybuilder.cs
- DeploymentSection.cs
- PropertyToken.cs
- EntityContainerAssociationSet.cs
- RepeatBehaviorConverter.cs
- FileDataSourceCache.cs
- XPathMultyIterator.cs
- RequestBringIntoViewEventArgs.cs
- ReadOnlyObservableCollection.cs
- ValidateNames.cs
- ProtocolsSection.cs
- CharConverter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ScrollPattern.cs
- WebPartManager.cs
- CngUIPolicy.cs
- ServiceReference.cs
- AssemblyContextControlItem.cs
- StringStorage.cs
- TempEnvironment.cs
- CallId.cs
- SerializableAttribute.cs
- ProtocolViolationException.cs
- LinqMaximalSubtreeNominator.cs
- PropertyGridCommands.cs
- RawStylusInputCustomData.cs
- ReceiveReply.cs
- OleDbRowUpdatedEvent.cs
- StrokeNode.cs
- ReadOnlyDictionary.cs
- RegexInterpreter.cs
- DocumentViewerAutomationPeer.cs
- CommunicationObject.cs
- DebugInfoExpression.cs
- CachedBitmap.cs
- ListParagraph.cs
- CodeBlockBuilder.cs
- AudienceUriMode.cs
- ListItem.cs
- LinkClickEvent.cs
- CompositeControlDesigner.cs
- SystemResourceHost.cs
- ReturnEventArgs.cs
- SqlDataAdapter.cs
- DataGridViewColumnHeaderCell.cs
- ProcessInfo.cs
- TransactionScopeDesigner.cs
- RemoteHelper.cs
- XmlUtf8RawTextWriter.cs
- StdValidatorsAndConverters.cs
- ListItemCollection.cs
- DBSqlParserTableCollection.cs
- WindowsImpersonationContext.cs
- MessageBuffer.cs
- IList.cs
- ListItemCollection.cs
- TreeViewImageKeyConverter.cs
- Propagator.cs
- ReferenceConverter.cs
- Rijndael.cs
- RoutedCommand.cs
- WsatStrings.cs
- ColorAnimation.cs
- CommonProperties.cs
- DataGridViewLinkColumn.cs
- DataObjectFieldAttribute.cs
- ObsoleteAttribute.cs
- QueryCacheManager.cs
- TransactedBatchContext.cs
- EntityDataSourceSelectedEventArgs.cs
- SchemaElement.cs
- ResourceAssociationTypeEnd.cs