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
- FixedBufferAttribute.cs
- KeyGesture.cs
- OleDbCommandBuilder.cs
- Size3D.cs
- DrawingContext.cs
- HtmlPageAdapter.cs
- dataobject.cs
- ContentIterators.cs
- shaperfactory.cs
- Decoder.cs
- TypeExtensionSerializer.cs
- Random.cs
- DataControlFieldCollection.cs
- ScriptManagerProxy.cs
- InfiniteIntConverter.cs
- XmlExpressionDumper.cs
- WebPartRestoreVerb.cs
- NotificationContext.cs
- Cell.cs
- RegisteredScript.cs
- DispatcherTimer.cs
- UIElementIsland.cs
- Calendar.cs
- CacheForPrimitiveTypes.cs
- EnumValidator.cs
- DataSourceProvider.cs
- Win32MouseDevice.cs
- Margins.cs
- LayoutDump.cs
- PageTheme.cs
- ArgIterator.cs
- Drawing.cs
- Resources.Designer.cs
- HyperLinkStyle.cs
- ViewKeyConstraint.cs
- XmlNodeList.cs
- PromptBuilder.cs
- InputProcessorProfilesLoader.cs
- InlineObject.cs
- FontFamily.cs
- _NTAuthentication.cs
- PostBackOptions.cs
- BitmapImage.cs
- ConfigurationElementCollection.cs
- XmlDataImplementation.cs
- DiscoveryDefaults.cs
- DataObjectCopyingEventArgs.cs
- OleDbEnumerator.cs
- User.cs
- ScrollChrome.cs
- ContainerControl.cs
- AsyncDataRequest.cs
- WindowsFormsSynchronizationContext.cs
- DataGridViewCellCollection.cs
- ShortcutKeysEditor.cs
- Stream.cs
- FontDifferentiator.cs
- EventPropertyMap.cs
- ConfigsHelper.cs
- XslTransform.cs
- ComponentRenameEvent.cs
- IndexerNameAttribute.cs
- AutoResizedEvent.cs
- FixUp.cs
- ContentType.cs
- RemotingAttributes.cs
- DelegateSerializationHolder.cs
- WebPartHeaderCloseVerb.cs
- BindingElement.cs
- SqlUtils.cs
- SyndicationPerson.cs
- ArrayList.cs
- CodeTryCatchFinallyStatement.cs
- WindowsFormsHostPropertyMap.cs
- PauseStoryboard.cs
- UniqueIdentifierService.cs
- ProcessMonitor.cs
- KernelTypeValidation.cs
- WebProxyScriptElement.cs
- SignedXml.cs
- _IPv6Address.cs
- PaperSize.cs
- SingleTagSectionHandler.cs
- UpWmlPageAdapter.cs
- LabelLiteral.cs
- SimpleTableProvider.cs
- InputLanguageProfileNotifySink.cs
- XmlElementAttribute.cs
- XmlQueryOutput.cs
- CommandID.cs
- LogStream.cs
- IndentedWriter.cs
- MetadataArtifactLoaderCompositeFile.cs
- ProjectedWrapper.cs
- OLEDB_Util.cs
- LogicalChannelCollection.cs
- SectionVisual.cs
- Vector3D.cs
- HttpClientCertificate.cs
- UnicodeEncoding.cs