Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImplicitInputBrush.cs
- EntityDataSourceChangingEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- CryptoStream.cs
- SuppressMergeCheckAttribute.cs
- DataList.cs
- ImageBrush.cs
- StylusShape.cs
- CultureSpecificStringDictionary.cs
- AssemblyBuilder.cs
- LinqTreeNodeEvaluator.cs
- OrthographicCamera.cs
- QueryableFilterUserControl.cs
- SqlUtils.cs
- DependsOnAttribute.cs
- ProfileManager.cs
- SafeUserTokenHandle.cs
- PropertyEmitterBase.cs
- CodeNamespaceImportCollection.cs
- TracedNativeMethods.cs
- TypeBrowserDialog.cs
- ExtendedProperty.cs
- WebPartEditorCancelVerb.cs
- CompilerErrorCollection.cs
- ContainerParagraph.cs
- SafeEventLogWriteHandle.cs
- NameSpaceExtractor.cs
- CompositeCollection.cs
- _SslState.cs
- RenderingEventArgs.cs
- EncryptedKeyIdentifierClause.cs
- safesecurityhelperavalon.cs
- TreeNodeStyleCollectionEditor.cs
- WeakEventTable.cs
- RichTextBoxConstants.cs
- SqlRetyper.cs
- counter.cs
- DataGridViewButtonColumn.cs
- Root.cs
- Membership.cs
- WorkflowApplicationTerminatedException.cs
- RelationalExpressions.cs
- XPathExpr.cs
- cryptoapiTransform.cs
- StrongTypingException.cs
- BaseHashHelper.cs
- CLSCompliantAttribute.cs
- RegexReplacement.cs
- ColorContextHelper.cs
- GcHandle.cs
- SSmlParser.cs
- HttpHandlerActionCollection.cs
- SqlBulkCopyColumnMapping.cs
- DbConnectionStringBuilder.cs
- GeneralTransform.cs
- LockedAssemblyCache.cs
- CompilerCollection.cs
- PointF.cs
- ByteRangeDownloader.cs
- DomNameTable.cs
- PageCodeDomTreeGenerator.cs
- HttpRuntimeSection.cs
- GeneratedContractType.cs
- MenuItem.cs
- Point.cs
- QilStrConcat.cs
- TransactionScope.cs
- MLangCodePageEncoding.cs
- ToolStripLabel.cs
- EdmTypeAttribute.cs
- CodeAttributeArgument.cs
- SecurityRuntime.cs
- SessionEndedEventArgs.cs
- CollectionEditor.cs
- WebPartCancelEventArgs.cs
- RegisteredArrayDeclaration.cs
- MobileControl.cs
- XPathNodePointer.cs
- CompositeControl.cs
- DbConnectionPoolCounters.cs
- SizeConverter.cs
- ClassDataContract.cs
- OutputCacheModule.cs
- OperationContext.cs
- WindowHelperService.cs
- ToReply.cs
- ExpressionContext.cs
- JavaScriptString.cs
- TextSimpleMarkerProperties.cs
- ReflectionPermission.cs
- HostingEnvironmentSection.cs
- PathSegment.cs
- PersonalizationStateQuery.cs
- XmlDataDocument.cs
- XmlBinaryReader.cs
- LogLogRecord.cs
- ExeConfigurationFileMap.cs
- CompilerTypeWithParams.cs
- ProcessThreadDesigner.cs
- TypeUnloadedException.cs