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 / 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
- Documentation.cs
- ObjectDataSourceChooseTypePanel.cs
- NumberFormatInfo.cs
- TokenBasedSetEnumerator.cs
- XmlTextReader.cs
- FormViewDeletedEventArgs.cs
- ZipFileInfoCollection.cs
- PropertyTab.cs
- ComponentSerializationService.cs
- CommonObjectSecurity.cs
- XmlSchemaNotation.cs
- Permission.cs
- User.cs
- Helpers.cs
- JavaScriptString.cs
- Package.cs
- ExecutionContext.cs
- ZipIORawDataFileBlock.cs
- PageCache.cs
- Mappings.cs
- CatalogPartChrome.cs
- BorderGapMaskConverter.cs
- RijndaelManagedTransform.cs
- DataProviderNameConverter.cs
- TextTreeObjectNode.cs
- EventManager.cs
- CompiledAction.cs
- SmtpNetworkElement.cs
- CriticalExceptions.cs
- ClickablePoint.cs
- LinqExpressionNormalizer.cs
- HostingMessageProperty.cs
- ReadOnlyCollectionBase.cs
- Enumerable.cs
- CacheChildrenQuery.cs
- ArraySortHelper.cs
- ErrorEventArgs.cs
- EventListenerClientSide.cs
- MutableAssemblyCacheEntry.cs
- SaveWorkflowAsyncResult.cs
- HashSet.cs
- CngKey.cs
- HttpCacheParams.cs
- ReadOnlyDictionary.cs
- RSAProtectedConfigurationProvider.cs
- XPathNavigatorKeyComparer.cs
- NumberFunctions.cs
- WorkflowHostingResponseContext.cs
- ObjectToIdCache.cs
- Line.cs
- XmlSchemaValidator.cs
- BrowserCapabilitiesCodeGenerator.cs
- ImageDesigner.cs
- ConversionContext.cs
- PagerSettings.cs
- DbParameterHelper.cs
- HttpErrorTraceRecord.cs
- EntityDataSource.cs
- FormatterServicesNoSerializableCheck.cs
- FontWeight.cs
- WindowInteractionStateTracker.cs
- DbInsertCommandTree.cs
- CallbackValidatorAttribute.cs
- ContractTypeNameCollection.cs
- RankException.cs
- CompilationUtil.cs
- ThreadStaticAttribute.cs
- StorageMappingFragment.cs
- AutomationPatternInfo.cs
- XmlBinaryReader.cs
- ThousandthOfEmRealPoints.cs
- FormatStringEditor.cs
- EDesignUtil.cs
- NodeLabelEditEvent.cs
- GetPageCompletedEventArgs.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- IdentityManager.cs
- StatusBarAutomationPeer.cs
- DataControlButton.cs
- ResourceSet.cs
- SocketManager.cs
- XamlBrushSerializer.cs
- ListViewAutomationPeer.cs
- ShapeTypeface.cs
- DesignerOptionService.cs
- CompilerLocalReference.cs
- KeyValuePair.cs
- TemplateGroupCollection.cs
- XmlSchemaSimpleTypeList.cs
- AuthorizationBehavior.cs
- EncryptedPackageFilter.cs
- DesignerActionKeyboardBehavior.cs
- DataViewSetting.cs
- TreeNodeEventArgs.cs
- FontStyle.cs
- AccessDataSourceView.cs
- DiscreteKeyFrames.cs
- Base64Decoder.cs
- RowBinding.cs
- CodeSnippetExpression.cs