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
- SetIndexBinder.cs
- Attributes.cs
- CreateUserWizardDesigner.cs
- RC2.cs
- TypeConverterValueSerializer.cs
- DataServiceQueryOfT.cs
- _SpnDictionary.cs
- DecimalAnimation.cs
- PersonalizableTypeEntry.cs
- SafeNativeMemoryHandle.cs
- MessageDroppedTraceRecord.cs
- Decorator.cs
- FixedSOMPageConstructor.cs
- RegexTree.cs
- WorkerRequest.cs
- ParsedAttributeCollection.cs
- OptimizedTemplateContentHelper.cs
- ProfileParameter.cs
- ConfigurationValidatorBase.cs
- XmlCharCheckingReader.cs
- SizeLimitedCache.cs
- Regex.cs
- XmlSiteMapProvider.cs
- RequestUriProcessor.cs
- SystemException.cs
- Signature.cs
- PropertyNames.cs
- SqlLiftIndependentRowExpressions.cs
- Rotation3D.cs
- HwndSourceParameters.cs
- XPathSelectionIterator.cs
- SchemaMapping.cs
- HttpRawResponse.cs
- XamlSerializer.cs
- DataGridViewCellLinkedList.cs
- TerminatorSinks.cs
- XmlHierarchicalDataSourceView.cs
- Debug.cs
- StrongNameMembershipCondition.cs
- NegatedCellConstant.cs
- TextEditorThreadLocalStore.cs
- regiisutil.cs
- RoamingStoreFileUtility.cs
- ReaderWriterLockWrapper.cs
- PenLineJoinValidation.cs
- ApplicationManager.cs
- HtmlInputReset.cs
- PersonalizationProviderHelper.cs
- DataGridItem.cs
- HotCommands.cs
- GiveFeedbackEvent.cs
- Point3DConverter.cs
- BaseCAMarshaler.cs
- ElementsClipboardData.cs
- DbConnectionInternal.cs
- StickyNoteContentControl.cs
- ProtocolsSection.cs
- XmlProcessingInstruction.cs
- Literal.cs
- ResolveCompletedEventArgs.cs
- CellParaClient.cs
- BroadcastEventHelper.cs
- SchemaNotation.cs
- InstalledVoice.cs
- StorageConditionPropertyMapping.cs
- SecurityContext.cs
- KoreanLunisolarCalendar.cs
- HttpProfileGroupBase.cs
- DocumentSequenceHighlightLayer.cs
- GridToolTip.cs
- HotSpotCollection.cs
- ToolStripRenderEventArgs.cs
- DataGridViewIntLinkedList.cs
- PropertyPath.cs
- SafePointer.cs
- X509Certificate.cs
- SqlTriggerAttribute.cs
- FaultHandlingFilter.cs
- TrackBarDesigner.cs
- SQLDecimalStorage.cs
- ConfigurationLockCollection.cs
- IDispatchConstantAttribute.cs
- ResourceDisplayNameAttribute.cs
- TrustLevel.cs
- WindowsRichEditRange.cs
- XPathScanner.cs
- PartialArray.cs
- TableProvider.cs
- PersonalizationAdministration.cs
- StrongNameIdentityPermission.cs
- BrowserCapabilitiesCompiler.cs
- ProxyHwnd.cs
- ReachSerializationUtils.cs
- SortExpressionBuilder.cs
- GetWorkflowTree.cs
- TextBoxBase.cs
- PrimitiveXmlSerializers.cs
- SystemColors.cs
- TemplatePropertyEntry.cs
- UICuesEvent.cs