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 / WebPartCatalogCloseVerb.cs / 1 / WebPartCatalogCloseVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartCatalogCloseVerb : 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.WebPartCatalogCloseVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartCatalogCloseVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartCatalogCloseVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartCatalogCloseVerb_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 WebPartCatalogCloseVerb : 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.WebPartCatalogCloseVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartCatalogCloseVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartCatalogCloseVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartCatalogCloseVerb_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
- HtmlInputReset.cs
- AnnotationDocumentPaginator.cs
- PropertyTabChangedEvent.cs
- WindowsListViewItem.cs
- DeclarativeCatalogPartDesigner.cs
- EntityClassGenerator.cs
- ServerIdentity.cs
- _HeaderInfo.cs
- LogicalExpr.cs
- LineServicesRun.cs
- HttpProfileBase.cs
- RootBrowserWindowProxy.cs
- PropertyDescriptorGridEntry.cs
- WinInetCache.cs
- Emitter.cs
- OleDbConnection.cs
- Viewport3DAutomationPeer.cs
- PolygonHotSpot.cs
- XmlDocumentType.cs
- SEHException.cs
- WebPartVerb.cs
- Types.cs
- Workspace.cs
- MetadataSource.cs
- RegistryConfigurationProvider.cs
- SmiConnection.cs
- UrlPath.cs
- ResourcesGenerator.cs
- DashStyle.cs
- X509ImageLogo.cs
- GraphicsContainer.cs
- TcpClientSocketManager.cs
- SymbolEqualComparer.cs
- FlowDocumentReader.cs
- VerificationAttribute.cs
- GridViewColumnCollectionChangedEventArgs.cs
- MethodCallConverter.cs
- BitmapEffectGeneralTransform.cs
- ResXResourceSet.cs
- ValidationResult.cs
- ListBindingHelper.cs
- ObjectItemConventionAssemblyLoader.cs
- ThreadPool.cs
- RepeatButtonAutomationPeer.cs
- ImageListImage.cs
- EllipseGeometry.cs
- ColumnMapTranslator.cs
- ClickablePoint.cs
- MulticastDelegate.cs
- XmlAttribute.cs
- Wildcard.cs
- ErrorFormatterPage.cs
- WorkflowItemsPresenter.cs
- BlurEffect.cs
- XmlAttributeHolder.cs
- Token.cs
- indexingfiltermarshaler.cs
- Internal.cs
- CachedCompositeFamily.cs
- LicenseContext.cs
- ObjectHandle.cs
- LogReserveAndAppendState.cs
- SystemEvents.cs
- NavigateEvent.cs
- IndentTextWriter.cs
- X509Certificate.cs
- WebPartMenuStyle.cs
- EventLog.cs
- Rules.cs
- CompiledScopeCriteria.cs
- COM2ICategorizePropertiesHandler.cs
- AdjustableArrowCap.cs
- parserscommon.cs
- SHA256Managed.cs
- CloudCollection.cs
- ValidationErrorEventArgs.cs
- PublisherIdentityPermission.cs
- DBConnectionString.cs
- ProviderIncompatibleException.cs
- SpecialFolderEnumConverter.cs
- ToolStripItem.cs
- TypeElement.cs
- ButtonField.cs
- SerializationSectionGroup.cs
- TextPattern.cs
- SessionStateItemCollection.cs
- WSSecurityPolicy.cs
- ListBoxItemAutomationPeer.cs
- ListViewContainer.cs
- UnicodeEncoding.cs
- VisualStyleTypesAndProperties.cs
- XamlVector3DCollectionSerializer.cs
- ItemList.cs
- ProgressBarRenderer.cs
- SoapSchemaMember.cs
- BoundingRectTracker.cs
- NetTcpSecurity.cs
- ProcessModelSection.cs
- HtmlString.cs
- DecoderNLS.cs