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 / WebPartConnectionsDisconnectVerb.cs / 1 / WebPartConnectionsDisconnectVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartConnectionsDisconnectVerb : 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.WebPartConnectionsDisconnectVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsDisconnectVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartConnectionsDisconnectVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsDisconnectVerb_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 WebPartConnectionsDisconnectVerb : 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.WebPartConnectionsDisconnectVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsDisconnectVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartConnectionsDisconnectVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartConnectionsDisconnectVerb_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
- ApplicationServiceHelper.cs
- OrderToken.cs
- PreservationFileReader.cs
- CollectionExtensions.cs
- DataGridViewCellMouseEventArgs.cs
- Vector3DAnimation.cs
- TokenBasedSet.cs
- Animatable.cs
- XmlAttributeCollection.cs
- CmsInterop.cs
- EpmSyndicationContentSerializer.cs
- PointUtil.cs
- PassportPrincipal.cs
- EncoderExceptionFallback.cs
- BaseValidatorDesigner.cs
- SafeFileMapViewHandle.cs
- Control.cs
- ContextMenuStripActionList.cs
- InvalidWorkflowException.cs
- Point3DCollectionConverter.cs
- FontUnitConverter.cs
- MenuCommands.cs
- ExtenderControl.cs
- SequentialUshortCollection.cs
- PreviewPrintController.cs
- TemplateControlBuildProvider.cs
- ViewKeyConstraint.cs
- BitmapMetadataEnumerator.cs
- SqlNodeAnnotation.cs
- XsdBuildProvider.cs
- PrintController.cs
- BuildProviderAppliesToAttribute.cs
- HwndStylusInputProvider.cs
- SystemInfo.cs
- MappableObjectManager.cs
- ReceiveParametersContent.cs
- HandledMouseEvent.cs
- IndependentAnimationStorage.cs
- GridViewColumnHeaderAutomationPeer.cs
- IntSecurity.cs
- ControlUtil.cs
- WebResourceUtil.cs
- CrossSiteScriptingValidation.cs
- FlowPanelDesigner.cs
- ProcessProtocolHandler.cs
- EventDescriptor.cs
- ProviderException.cs
- EnumType.cs
- CompensationHandlingFilter.cs
- SystemIcmpV6Statistics.cs
- ToolStripTextBox.cs
- NavigationProperty.cs
- CatalogPartCollection.cs
- SapiGrammar.cs
- DataGridAddNewRow.cs
- SemanticAnalyzer.cs
- LocalBuilder.cs
- QueryStatement.cs
- MultiDataTrigger.cs
- MergablePropertyAttribute.cs
- CacheMemory.cs
- HandlerMappingMemo.cs
- ReferencedCollectionType.cs
- FormsAuthenticationUser.cs
- EllipseGeometry.cs
- RtfToken.cs
- PeerResolverSettings.cs
- PtsPage.cs
- input.cs
- DispatcherExceptionFilterEventArgs.cs
- ToolStripTextBox.cs
- OutputCacheProviderCollection.cs
- PropertySegmentSerializer.cs
- Baml2006SchemaContext.cs
- WSHttpBindingElement.cs
- PathFigure.cs
- ToolTip.cs
- DataContractJsonSerializer.cs
- RijndaelManaged.cs
- HtmlInputControl.cs
- COMException.cs
- HtmlInputFile.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- Point.cs
- TransportReplyChannelAcceptor.cs
- Parameter.cs
- EntitySqlQueryCacheEntry.cs
- CharAnimationUsingKeyFrames.cs
- SecurityStateEncoder.cs
- HttpPostServerProtocol.cs
- GridView.cs
- CodeMemberProperty.cs
- _AcceptOverlappedAsyncResult.cs
- ConnectionManagementElementCollection.cs
- WSHttpSecurityElement.cs
- UserControlDesigner.cs
- DigestTraceRecordHelper.cs
- SrgsGrammarCompiler.cs
- TokenBasedSetEnumerator.cs
- NGCPageContentCollectionSerializerAsync.cs