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
- ArrayListCollectionBase.cs
- rsa.cs
- AutomationPatternInfo.cs
- HtmlToClrEventProxy.cs
- DbgUtil.cs
- SystemIPGlobalStatistics.cs
- Lease.cs
- StatusBarAutomationPeer.cs
- Point3D.cs
- GlyphRunDrawing.cs
- COAUTHINFO.cs
- XmlSchemaComplexContent.cs
- Transactions.cs
- ObjectTag.cs
- WriteableBitmap.cs
- MachineKeyConverter.cs
- CodeAttributeDeclarationCollection.cs
- RectAnimationClockResource.cs
- XmlDocument.cs
- Behavior.cs
- Grant.cs
- RunInstallerAttribute.cs
- EncryptedData.cs
- BaseCAMarshaler.cs
- HostingEnvironmentSection.cs
- SpecularMaterial.cs
- Stream.cs
- SourceCollection.cs
- WebPartCancelEventArgs.cs
- Listbox.cs
- Focus.cs
- InkCanvasSelectionAdorner.cs
- RegularExpressionValidator.cs
- ResourceCategoryAttribute.cs
- AccessibleObject.cs
- DataSourceXmlSerializer.cs
- DataGridViewTextBoxEditingControl.cs
- mediaeventargs.cs
- RegexCompiler.cs
- SecurityElement.cs
- NativeBuffer.cs
- FlagsAttribute.cs
- Debug.cs
- RequestBringIntoViewEventArgs.cs
- XamlReaderHelper.cs
- ShimAsPublicXamlType.cs
- Directory.cs
- OutOfMemoryException.cs
- NodeFunctions.cs
- SingleAnimationBase.cs
- TableCell.cs
- Compiler.cs
- ReferencedAssemblyResolver.cs
- QuaternionAnimation.cs
- BoolExpr.cs
- ProtocolElementCollection.cs
- XmlHierarchyData.cs
- DataTemplate.cs
- ListViewItemSelectionChangedEvent.cs
- SettingsPropertyCollection.cs
- glyphs.cs
- XamlSerializationHelper.cs
- HTMLTextWriter.cs
- TimeEnumHelper.cs
- AsyncWaitHandle.cs
- XmlWriterTraceListener.cs
- RedirectionProxy.cs
- ServicesExceptionNotHandledEventArgs.cs
- _CookieModule.cs
- ArgumentOutOfRangeException.cs
- PropertyNames.cs
- XmlSignatureManifest.cs
- ExceptionHelpers.cs
- SpotLight.cs
- ClientBuildManager.cs
- VScrollProperties.cs
- RoutedEventArgs.cs
- ResourceDefaultValueAttribute.cs
- BitmapEffect.cs
- cookiecollection.cs
- WaitForChangedResult.cs
- StructuredProperty.cs
- DatatypeImplementation.cs
- ObjectResult.cs
- Pair.cs
- MouseCaptureWithinProperty.cs
- ListView.cs
- XmlWriterSettings.cs
- PeerResolverBindingElement.cs
- JulianCalendar.cs
- DbConnectionInternal.cs
- FormsAuthenticationModule.cs
- TypedOperationInfo.cs
- TextFormatter.cs
- NameSpaceExtractor.cs
- GacUtil.cs
- TypeUnloadedException.cs
- SqlDataSourceConfigureSelectPanel.cs
- ClientFormsAuthenticationCredentials.cs
- Path.cs