Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MapPathBasedVirtualPathProvider.cs
- CodeDefaultValueExpression.cs
- VisualTarget.cs
- CodeDirectoryCompiler.cs
- NativeMethods.cs
- CounterSampleCalculator.cs
- VoiceInfo.cs
- PreApplicationStartMethodAttribute.cs
- WindowsGraphics2.cs
- OperationInfo.cs
- NativeMethods.cs
- ToolStripItemClickedEventArgs.cs
- ObjectListCommandEventArgs.cs
- DataGridViewAccessibleObject.cs
- COM2ComponentEditor.cs
- CreateInstanceBinder.cs
- ExpandButtonVisibilityConverter.cs
- NavigationWindowAutomationPeer.cs
- Geometry3D.cs
- XmlFileEditor.cs
- XmlSchemaAnyAttribute.cs
- TreeNodeCollectionEditor.cs
- WeakRefEnumerator.cs
- AstTree.cs
- NativeCompoundFileAPIs.cs
- MiniCustomAttributeInfo.cs
- CurrentChangedEventManager.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SqlWriter.cs
- CryptoConfig.cs
- DtrList.cs
- ColorIndependentAnimationStorage.cs
- Freezable.cs
- DirectionalLight.cs
- SHA256.cs
- ColorTransform.cs
- TableChangeProcessor.cs
- XPathParser.cs
- TextRangeBase.cs
- SafeIUnknown.cs
- ModelTreeEnumerator.cs
- TreeNode.cs
- ObjectDataSourceView.cs
- CertificateElement.cs
- SymmetricKeyWrap.cs
- OAVariantLib.cs
- SignatureHelper.cs
- BrowserDefinition.cs
- UdpTransportSettings.cs
- ActivityTypeDesigner.xaml.cs
- XmlComplianceUtil.cs
- Rule.cs
- IgnoreSection.cs
- CompositeFontFamily.cs
- SoapFaultCodes.cs
- NameHandler.cs
- linebase.cs
- StructuredProperty.cs
- XmlDataSourceView.cs
- _RequestCacheProtocol.cs
- SmiXetterAccessMap.cs
- GB18030Encoding.cs
- Literal.cs
- FontSource.cs
- ColorConvertedBitmap.cs
- EntityDataSourceUtil.cs
- EntityModelSchemaGenerator.cs
- AutomationElement.cs
- PropertiesTab.cs
- PrincipalPermission.cs
- FontFamily.cs
- TrackingCondition.cs
- ViewStateModeByIdAttribute.cs
- WindowsFont.cs
- WebPartManager.cs
- SignatureHelper.cs
- CounterSetInstance.cs
- WizardForm.cs
- ProcessRequestArgs.cs
- OperationAbortedException.cs
- StoryFragments.cs
- _NegoStream.cs
- _RequestLifetimeSetter.cs
- RSACryptoServiceProvider.cs
- OracleColumn.cs
- ScaleTransform.cs
- MemberDescriptor.cs
- UnsafeNativeMethods.cs
- ObjectIDGenerator.cs
- httpapplicationstate.cs
- SessionIDManager.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- HistoryEventArgs.cs
- ListBindableAttribute.cs
- SoapSchemaExporter.cs
- ToolStripDropDownDesigner.cs
- StorageEntityTypeMapping.cs
- ObjectAnimationBase.cs
- FontFamilyValueSerializer.cs
- Input.cs