Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeHGlobalHandleCritical.cs
- UiaCoreTypesApi.cs
- CompoundFileReference.cs
- RelationshipDetailsRow.cs
- WebHttpSecurity.cs
- DbDataAdapter.cs
- RuntimeResourceSet.cs
- ComponentEditorForm.cs
- WindowCollection.cs
- IISUnsafeMethods.cs
- OleAutBinder.cs
- HttpSocketManager.cs
- TimelineGroup.cs
- TagMapInfo.cs
- XmlnsCompatibleWithAttribute.cs
- Item.cs
- HybridWebProxyFinder.cs
- DurableInstanceManager.cs
- selecteditemcollection.cs
- MsmqOutputSessionChannel.cs
- SafeFileMappingHandle.cs
- ProcessHostFactoryHelper.cs
- AlgoModule.cs
- BufferedGraphicsContext.cs
- BridgeDataRecord.cs
- IntPtr.cs
- Dump.cs
- LogReservationCollection.cs
- DependencyPropertyDescriptor.cs
- PartBasedPackageProperties.cs
- BaseHashHelper.cs
- MasterPage.cs
- DataGridCommandEventArgs.cs
- XmlILAnnotation.cs
- SqlAliasesReferenced.cs
- TextWriter.cs
- ReadOnlyDataSource.cs
- Nodes.cs
- UncommonField.cs
- PointKeyFrameCollection.cs
- OdbcConnectionStringbuilder.cs
- SessionStateItemCollection.cs
- TypeDependencyAttribute.cs
- DataServiceConfiguration.cs
- RangeValidator.cs
- SqlClientWrapperSmiStreamChars.cs
- XmlPropertyBag.cs
- ThreadStaticAttribute.cs
- CalendarTable.cs
- OracleParameterCollection.cs
- Transform3DGroup.cs
- GridPattern.cs
- HostingEnvironmentSection.cs
- UrlPath.cs
- Semaphore.cs
- AnimatedTypeHelpers.cs
- XmlSerializerSection.cs
- AxisAngleRotation3D.cs
- ImageDrawing.cs
- Hex.cs
- XmlSerializer.cs
- ItemList.cs
- PageTheme.cs
- ZeroOpNode.cs
- InputManager.cs
- CollectionEditor.cs
- ProcessThreadCollection.cs
- PublisherMembershipCondition.cs
- AttributeQuery.cs
- ActivityCollectionMarkupSerializer.cs
- UnmanagedMemoryStream.cs
- FrameworkElement.cs
- DetailsViewRow.cs
- MonikerHelper.cs
- OutOfMemoryException.cs
- DataTableNewRowEvent.cs
- BitmapMetadata.cs
- FixedPage.cs
- metadatamappinghashervisitor.cs
- ObjectDataSource.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- CodeDirectiveCollection.cs
- IisTraceWebEventProvider.cs
- SymDocumentType.cs
- X509WindowsSecurityToken.cs
- RootBrowserWindowAutomationPeer.cs
- ProxyWebPartConnectionCollection.cs
- MinimizableAttributeTypeConverter.cs
- DocumentsTrace.cs
- HierarchicalDataSourceControl.cs
- VirtualizedContainerService.cs
- SqlCommand.cs
- SystemWebCachingSectionGroup.cs
- CodeDelegateInvokeExpression.cs
- StateDesigner.TransitionInfo.cs
- SecurityPolicyVersion.cs
- UniqueConstraint.cs
- DesignTimeTemplateParser.cs
- PropertyMappingExceptionEventArgs.cs
- basecomparevalidator.cs