Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartExportVerb.cs / 1 / WebPartExportVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartExportVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartExportVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartExportVerb_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.WebPartExportVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartExportVerb_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 WebPartExportVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartExportVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartExportVerb_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.WebPartExportVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartExportVerb_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
- AddValidationError.cs
- CfgSemanticTag.cs
- DatasetMethodGenerator.cs
- VersionPair.cs
- ConvertEvent.cs
- StrokeNodeEnumerator.cs
- ClientFormsIdentity.cs
- SqlUserDefinedTypeAttribute.cs
- HijriCalendar.cs
- Evaluator.cs
- FixedNode.cs
- ChangeToolStripParentVerb.cs
- SecurityVersion.cs
- PropertyDescriptorComparer.cs
- log.cs
- EndOfStreamException.cs
- DataTablePropertyDescriptor.cs
- COAUTHIDENTITY.cs
- Config.cs
- ReadWriteSpinLock.cs
- SafeThreadHandle.cs
- DbConnectionPoolGroup.cs
- ResourceDefaultValueAttribute.cs
- SiteMapDataSource.cs
- CodeNamespace.cs
- SettingsAttributes.cs
- Renderer.cs
- SQLBinaryStorage.cs
- UiaCoreApi.cs
- D3DImage.cs
- ApplicationDirectory.cs
- ServicePoint.cs
- EdmScalarPropertyAttribute.cs
- NetworkInformationException.cs
- AuthenticodeSignatureInformation.cs
- LineGeometry.cs
- InvalidateEvent.cs
- InvokeMethodActivityDesigner.cs
- RightNameExpirationInfoPair.cs
- FlagsAttribute.cs
- ZipIOCentralDirectoryBlock.cs
- XhtmlStyleClass.cs
- AuthenticatingEventArgs.cs
- GridViewRowEventArgs.cs
- COMException.cs
- QilLoop.cs
- DynamicILGenerator.cs
- TreeViewItemAutomationPeer.cs
- CreateBookmarkScope.cs
- JsonServiceDocumentSerializer.cs
- XmlQueryContext.cs
- ThreadPool.cs
- CompilerCollection.cs
- DataList.cs
- WebConfigurationHostFileChange.cs
- KeyEvent.cs
- XmlNavigatorFilter.cs
- SystemIPInterfaceProperties.cs
- XmlDataSource.cs
- RoutedEventConverter.cs
- SubtreeProcessor.cs
- OptimalTextSource.cs
- StylusDevice.cs
- Utilities.cs
- ExpandSegment.cs
- ComponentConverter.cs
- LinqTreeNodeEvaluator.cs
- XmlSchemaAll.cs
- XmlReaderSettings.cs
- RuntimeEnvironment.cs
- RecommendedAsConfigurableAttribute.cs
- TransformValueSerializer.cs
- WebPartConnectionCollection.cs
- WSIdentityFaultException.cs
- RtType.cs
- PersonalizationDictionary.cs
- SerializationInfoEnumerator.cs
- NavigatorInvalidBodyAccessException.cs
- MimeTypePropertyAttribute.cs
- HyperLinkColumn.cs
- DocumentGridContextMenu.cs
- IpcClientChannel.cs
- DetailsViewRowCollection.cs
- DataGridComponentEditor.cs
- ToolTipService.cs
- NegationPusher.cs
- PhysicalOps.cs
- Int32EqualityComparer.cs
- TrackBarRenderer.cs
- SelectionProviderWrapper.cs
- XmlAttributeProperties.cs
- WebHeaderCollection.cs
- DelimitedListTraceListener.cs
- ArraySortHelper.cs
- NotEqual.cs
- PackageStore.cs
- DataGridCommandEventArgs.cs
- StylusPointPropertyUnit.cs
- QilGenerator.cs
- HttpWriter.cs