Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartConnectionsCancelVerb.cs / 1305376 / WebPartConnectionsCancelVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartConnectionsCancelVerb : 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.WebPartConnectionsCancelVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsCancelVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartConnectionsCancelVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsCancelVerb_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 WebPartConnectionsCancelVerb : 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.WebPartConnectionsCancelVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsCancelVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartConnectionsCancelVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsCancelVerb_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
- CustomErrorsSectionWrapper.cs
- EntityCollection.cs
- HttpResponseBase.cs
- Rectangle.cs
- ListControl.cs
- PngBitmapDecoder.cs
- EllipseGeometry.cs
- CheckableControlBaseAdapter.cs
- TemplateBindingExpression.cs
- SiteMapNodeItem.cs
- HttpWebResponse.cs
- VersionUtil.cs
- DispatcherOperation.cs
- ComPlusServiceLoader.cs
- XPathNavigator.cs
- AlignmentXValidation.cs
- PictureBox.cs
- ListViewDataItem.cs
- DigestTraceRecordHelper.cs
- GradientSpreadMethodValidation.cs
- MenuItemCollection.cs
- BindingNavigator.cs
- ExternalCalls.cs
- FileLevelControlBuilderAttribute.cs
- ListBindingHelper.cs
- RawStylusActions.cs
- BookmarkOptionsHelper.cs
- ListDictionaryInternal.cs
- PointAnimation.cs
- SqlBulkCopy.cs
- ColumnCollection.cs
- FactoryGenerator.cs
- PolicyImporterElement.cs
- AutomationFocusChangedEventArgs.cs
- EnumerableWrapperWeakToStrong.cs
- ProfileService.cs
- COM2AboutBoxPropertyDescriptor.cs
- ItemsControlAutomationPeer.cs
- InstanceStoreQueryResult.cs
- XmlQualifiedNameTest.cs
- DataKeyCollection.cs
- UrlPropertyAttribute.cs
- ACE.cs
- HtmlMeta.cs
- ObjectDisposedException.cs
- Pens.cs
- DataServiceRequest.cs
- WorkflowTimerService.cs
- AnimationLayer.cs
- SignerInfo.cs
- EditBehavior.cs
- formatter.cs
- Latin1Encoding.cs
- DynamicVirtualDiscoSearcher.cs
- XmlSchemaAnnotated.cs
- ZipIOLocalFileHeader.cs
- ExtensionQuery.cs
- PageAsyncTaskManager.cs
- CachedTypeface.cs
- DefaultPropertyAttribute.cs
- ExpandableObjectConverter.cs
- EventMap.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- WebPartConnectionsDisconnectVerb.cs
- SafeNativeMethods.cs
- PairComparer.cs
- RestClientProxyHandler.cs
- JsonWriter.cs
- ConstructorBuilder.cs
- ObjectDataSourceStatusEventArgs.cs
- OracleCommandSet.cs
- Label.cs
- Border.cs
- DataRecordInternal.cs
- DetailsViewPageEventArgs.cs
- ModelPerspective.cs
- MgmtConfigurationRecord.cs
- ErrorHandler.cs
- Transaction.cs
- BufferedWebEventProvider.cs
- ListManagerBindingsCollection.cs
- ChangePassword.cs
- PointAnimationUsingPath.cs
- ParameterElement.cs
- DataGridAutoFormatDialog.cs
- Int32RectConverter.cs
- MDIClient.cs
- Inflater.cs
- SqlDependencyUtils.cs
- SimplePropertyEntry.cs
- HttpListenerRequest.cs
- MetadataException.cs
- XmlLanguageConverter.cs
- DataReceivedEventArgs.cs
- SaveFileDialog.cs
- CodeConditionStatement.cs
- TagMapCollection.cs
- UnsafeNativeMethods.cs
- WebConfigurationHostFileChange.cs
- _Semaphore.cs