Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDeleteVerb.cs / 1 / WebPartDeleteVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_Text); } return _defaultText; } } // 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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (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 WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_Text); } return _defaultText; } } // 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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (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
- ExpressionTextBox.xaml.cs
- StoragePropertyMapping.cs
- CodeEventReferenceExpression.cs
- XmlSchemaSimpleType.cs
- AccessDataSourceView.cs
- DataControlLinkButton.cs
- CellPartitioner.cs
- CollectionCodeDomSerializer.cs
- TimeZone.cs
- DataGridViewCell.cs
- MessageQueueTransaction.cs
- EditorPartCollection.cs
- ParameterCollectionEditor.cs
- ComEventsMethod.cs
- OrderedDictionaryStateHelper.cs
- MsmqInputChannelListenerBase.cs
- FactoryGenerator.cs
- GridViewCommandEventArgs.cs
- IIS7UserPrincipal.cs
- XsltSettings.cs
- ResourceManager.cs
- PageThemeBuildProvider.cs
- RSACryptoServiceProvider.cs
- AdvancedBindingEditor.cs
- TextServicesLoader.cs
- GPPOINT.cs
- StrongNamePublicKeyBlob.cs
- TextTreeUndo.cs
- LabelAutomationPeer.cs
- PersonalizableAttribute.cs
- CssClassPropertyAttribute.cs
- CngKey.cs
- DependencyObjectType.cs
- SHA1Managed.cs
- PassportAuthenticationEventArgs.cs
- IndependentlyAnimatedPropertyMetadata.cs
- RoutingBehavior.cs
- ErrorWrapper.cs
- QilInvokeLateBound.cs
- CheckBoxStandardAdapter.cs
- Int64Converter.cs
- DataServiceContext.cs
- LocatorPart.cs
- DataTable.cs
- AssociationSetMetadata.cs
- PointLight.cs
- Grid.cs
- BitmapMetadata.cs
- EnvelopedSignatureTransform.cs
- RC2CryptoServiceProvider.cs
- SessionStateModule.cs
- loginstatus.cs
- VScrollBar.cs
- TextEvent.cs
- Helpers.cs
- ActivityValidationServices.cs
- CodeGroup.cs
- ContextBase.cs
- RelationshipSet.cs
- ProxyHwnd.cs
- UiaCoreProviderApi.cs
- DelimitedListTraceListener.cs
- OptimizedTemplateContentHelper.cs
- AddInPipelineAttributes.cs
- CompareInfo.cs
- RoutingUtilities.cs
- ObjectStateEntry.cs
- XmlSerializerOperationBehavior.cs
- CompilerHelpers.cs
- Privilege.cs
- DataGridViewComboBoxCell.cs
- NullableFloatAverageAggregationOperator.cs
- Exceptions.cs
- ControlCollection.cs
- SqlDataSource.cs
- BreakSafeBase.cs
- Transactions.cs
- GeometryGroup.cs
- EDesignUtil.cs
- NetPeerTcpBindingCollectionElement.cs
- WmfPlaceableFileHeader.cs
- SyndicationDeserializer.cs
- FormViewInsertedEventArgs.cs
- XmlValueConverter.cs
- FontSourceCollection.cs
- SQLBinaryStorage.cs
- QuarticEase.cs
- DesignerEditorPartChrome.cs
- ObjectAnimationBase.cs
- SiteMapNodeItemEventArgs.cs
- QueryStringParameter.cs
- TextBoxRenderer.cs
- ListViewGroup.cs
- XmlSerializableWriter.cs
- _NetRes.cs
- FileChangeNotifier.cs
- NonDualMessageSecurityOverHttpElement.cs
- EditorZoneAutoFormat.cs
- ContentPosition.cs
- FixedBufferAttribute.cs