Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartExportVerb.cs / 1305376 / 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
- SigningCredentials.cs
- CorrelationManager.cs
- KeyMatchBuilder.cs
- MulticastIPAddressInformationCollection.cs
- IsolatedStorageException.cs
- TransformerInfoCollection.cs
- SqlDataSourceView.cs
- NamespaceMapping.cs
- ColorMap.cs
- BamlResourceContent.cs
- FontNamesConverter.cs
- ModelFunction.cs
- CustomDictionarySources.cs
- WeakEventTable.cs
- StyleSelector.cs
- IImplicitResourceProvider.cs
- TableChangeProcessor.cs
- SecurityContextKeyIdentifierClause.cs
- UiaCoreProviderApi.cs
- DbCommandDefinition.cs
- Rotation3D.cs
- RoleExceptions.cs
- ThumbAutomationPeer.cs
- XmlLanguageConverter.cs
- WindowsScrollBar.cs
- DataPagerField.cs
- AutomationPropertyInfo.cs
- CompletionBookmark.cs
- GenericParameterDataContract.cs
- InstalledFontCollection.cs
- EventLogEntry.cs
- DigestTraceRecordHelper.cs
- FileNotFoundException.cs
- ObjectDataSourceFilteringEventArgs.cs
- GridViewPageEventArgs.cs
- ConfigurationElementProperty.cs
- FusionWrap.cs
- LiteralTextParser.cs
- TypeDescriptionProvider.cs
- StringPropertyBuilder.cs
- returneventsaver.cs
- Assert.cs
- SqlConnectionString.cs
- FormViewUpdatedEventArgs.cs
- _SpnDictionary.cs
- bidPrivateBase.cs
- FontUnitConverter.cs
- XsltSettings.cs
- LZCodec.cs
- FilteredReadOnlyMetadataCollection.cs
- OperationPickerDialog.designer.cs
- SourceFileBuildProvider.cs
- TypeConverterValueSerializer.cs
- UserNamePasswordValidationMode.cs
- SimpleWebHandlerParser.cs
- DataTablePropertyDescriptor.cs
- PagerSettings.cs
- returneventsaver.cs
- ModelUIElement3D.cs
- AttachmentService.cs
- ThrowHelper.cs
- DataObjectAttribute.cs
- ReferentialConstraint.cs
- SymbolEqualComparer.cs
- AnnotationResourceChangedEventArgs.cs
- SchemaName.cs
- ComponentRenameEvent.cs
- FixedSOMFixedBlock.cs
- PropertyNames.cs
- AxisAngleRotation3D.cs
- AlphabeticalEnumConverter.cs
- PrintPreviewControl.cs
- OverrideMode.cs
- RequestCachePolicy.cs
- ClientRolePrincipal.cs
- RestClientProxyHandler.cs
- VerificationAttribute.cs
- Nodes.cs
- DocumentGridPage.cs
- MatrixConverter.cs
- TableRow.cs
- QuadraticEase.cs
- PipelineModuleStepContainer.cs
- TreeNodeCollection.cs
- DataGridRowHeaderAutomationPeer.cs
- FormClosingEvent.cs
- AsyncPostBackTrigger.cs
- Vector3DCollectionValueSerializer.cs
- RenderTargetBitmap.cs
- RotationValidation.cs
- MediaEntryAttribute.cs
- RegistryDataKey.cs
- SecurityHelper.cs
- XamlFigureLengthSerializer.cs
- RawTextInputReport.cs
- ContextActivityUtils.cs
- IPAddressCollection.cs
- OdbcTransaction.cs
- ObjectQueryProvider.cs
- DataSourceControl.cs