Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartCatalogAddVerb.cs / 1 / WebPartCatalogAddVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartCatalogAddVerb : 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.WebPartCatalogAddVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartCatalogAddVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_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 WebPartCatalogAddVerb : 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.WebPartCatalogAddVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartCatalogAddVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_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
- ProxyRpc.cs
- Control.cs
- RepeatBehavior.cs
- FloatUtil.cs
- DesignerAutoFormatStyle.cs
- DependencyPropertyKey.cs
- SiteIdentityPermission.cs
- TraceContextEventArgs.cs
- HyperLinkStyle.cs
- ConditionalAttribute.cs
- DbProviderFactory.cs
- BaseParser.cs
- _SecureChannel.cs
- Path.cs
- EventToken.cs
- EtwTrackingBehaviorElement.cs
- PageCodeDomTreeGenerator.cs
- DataControlFieldHeaderCell.cs
- X509Logo.cs
- ErrorHandler.cs
- RenderTargetBitmap.cs
- ContextStaticAttribute.cs
- AttributeUsageAttribute.cs
- TableDesigner.cs
- EntityDataSourceDataSelection.cs
- DefaultValueAttribute.cs
- CultureNotFoundException.cs
- tabpagecollectioneditor.cs
- DefaultShape.cs
- CodeGen.cs
- AssemblyBuilder.cs
- RestHandler.cs
- ActivityFunc.cs
- XmlElementAttribute.cs
- ParseHttpDate.cs
- MultiSelectRootGridEntry.cs
- LayoutDump.cs
- ObjectTokenCategory.cs
- LoadedOrUnloadedOperation.cs
- GuidelineSet.cs
- CLSCompliantAttribute.cs
- EntityDataSourceSelectedEventArgs.cs
- LinqToSqlWrapper.cs
- HttpBrowserCapabilitiesWrapper.cs
- GcSettings.cs
- AlphaSortedEnumConverter.cs
- XmlQualifiedNameTest.cs
- CustomErrorCollection.cs
- MessageQueue.cs
- CodeTypeDeclaration.cs
- RangeBase.cs
- DocumentGridContextMenu.cs
- WebPartAuthorizationEventArgs.cs
- RadioButtonFlatAdapter.cs
- GlyphInfoList.cs
- DesignerContextDescriptor.cs
- SpAudioStreamWrapper.cs
- MissingSatelliteAssemblyException.cs
- RegexBoyerMoore.cs
- HtmlImage.cs
- LabelDesigner.cs
- ToolBarButtonClickEvent.cs
- CompositeFontFamily.cs
- PassportAuthentication.cs
- _NegotiateClient.cs
- LayoutInformation.cs
- DesignerDataRelationship.cs
- BufferModesCollection.cs
- OleAutBinder.cs
- WebBrowserBase.cs
- IFlowDocumentViewer.cs
- AssemblySettingAttributes.cs
- WmfPlaceableFileHeader.cs
- BitmapEffectState.cs
- XmlCharCheckingReader.cs
- RequestCachePolicyConverter.cs
- _AutoWebProxyScriptWrapper.cs
- PrintDocument.cs
- TabControl.cs
- GridSplitter.cs
- CacheSection.cs
- KeyboardNavigation.cs
- DataGridViewMethods.cs
- FormCollection.cs
- PixelFormats.cs
- DrawingAttributes.cs
- NativeMethods.cs
- Directory.cs
- DbProviderFactories.cs
- StateElement.cs
- EdgeModeValidation.cs
- XmlTextAttribute.cs
- SqlCommandBuilder.cs
- SingleResultAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- HashSetDebugView.cs
- Scanner.cs
- BitmapEffectrendercontext.cs
- InputBinding.cs
- RecognizerBase.cs