Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartRestoreVerb.cs / 1 / WebPartRestoreVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartRestoreVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartRestoreVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartRestoreVerb_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.WebPartRestoreVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartRestoreVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (string)o; } set { ViewState["Text"] = value; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RangeBaseAutomationPeer.cs
- DataList.cs
- GACMembershipCondition.cs
- StackSpiller.Temps.cs
- ListViewDataItem.cs
- ClientScriptManager.cs
- OracleException.cs
- SmiSettersStream.cs
- FixedTextView.cs
- ScrollItemProviderWrapper.cs
- Misc.cs
- MemberPath.cs
- Attributes.cs
- ComponentResourceManager.cs
- HelloOperationCD1AsyncResult.cs
- ListParagraph.cs
- MimeTypeMapper.cs
- Unit.cs
- SQLBytes.cs
- DrawListViewColumnHeaderEventArgs.cs
- TdsValueSetter.cs
- XmlSchemaValidator.cs
- CodeCommentStatementCollection.cs
- Rect.cs
- OpCopier.cs
- GridViewActionList.cs
- GraphicsContainer.cs
- XmlBinaryReader.cs
- RootDesignerSerializerAttribute.cs
- ClaimComparer.cs
- FactoryGenerator.cs
- DataSetFieldSchema.cs
- ArgumentNullException.cs
- DataStorage.cs
- ToolBarButton.cs
- XmlLoader.cs
- XMLSyntaxException.cs
- ExpandCollapsePatternIdentifiers.cs
- PathGeometry.cs
- InstallerTypeAttribute.cs
- ConfigPathUtility.cs
- SplashScreen.cs
- MatrixConverter.cs
- InputScopeAttribute.cs
- CollectionChangedEventManager.cs
- NameValueFileSectionHandler.cs
- DocumentReference.cs
- XmlEncodedRawTextWriter.cs
- DelimitedListTraceListener.cs
- GeneralTransform3DTo2DTo3D.cs
- CheckBoxAutomationPeer.cs
- Stack.cs
- VarRefManager.cs
- HttpCookiesSection.cs
- DebugHandleTracker.cs
- PathFigureCollectionConverter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- RichTextBoxConstants.cs
- XsltException.cs
- GeometryHitTestParameters.cs
- TraceLog.cs
- LayoutDump.cs
- GenericWebPart.cs
- TransferRequestHandler.cs
- BinaryWriter.cs
- ReferenceTypeElement.cs
- MatcherBuilder.cs
- OrCondition.cs
- Message.cs
- TemplateControlCodeDomTreeGenerator.cs
- HtmlInputCheckBox.cs
- PersonalizationEntry.cs
- DataGridViewButtonColumn.cs
- GridViewSortEventArgs.cs
- ButtonColumn.cs
- TargetParameterCountException.cs
- SiteMap.cs
- StrokeIntersection.cs
- IdentityNotMappedException.cs
- ContactManager.cs
- SessionPageStatePersister.cs
- ZipIOExtraField.cs
- GuidTagList.cs
- XmlFormatExtensionAttribute.cs
- PropertyState.cs
- HttpWebRequestElement.cs
- FieldNameLookup.cs
- DictionaryMarkupSerializer.cs
- DocumentViewer.cs
- HttpRawResponse.cs
- DataContractSerializerFaultFormatter.cs
- CodeMemberEvent.cs
- HelpKeywordAttribute.cs
- ConditionalWeakTable.cs
- SqlLiftIndependentRowExpressions.cs
- ThreadStaticAttribute.cs
- BackgroundWorker.cs
- Triplet.cs
- PropertyMappingExceptionEventArgs.cs
- DataGridColumnCollection.cs