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
- SafeRightsManagementQueryHandle.cs
- IgnoreSectionHandler.cs
- DataGridColumnsPage.cs
- httpapplicationstate.cs
- CompatibleComparer.cs
- RSACryptoServiceProvider.cs
- UidManager.cs
- MethodBody.cs
- ThreadWorkerController.cs
- FormsAuthenticationModule.cs
- UTF7Encoding.cs
- MatrixUtil.cs
- UnicodeEncoding.cs
- AssemblyInfo.cs
- MobileTemplatedControlDesigner.cs
- AnimationException.cs
- EncoderParameters.cs
- DataSpaceManager.cs
- CodeAttributeArgumentCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- AdornerLayer.cs
- InvokeSchedule.cs
- AsymmetricKeyExchangeDeformatter.cs
- ValidationRuleCollection.cs
- QilGeneratorEnv.cs
- DecoderNLS.cs
- Parameter.cs
- Attributes.cs
- FileDialogCustomPlace.cs
- XPathAxisIterator.cs
- GB18030Encoding.cs
- DoubleLinkListEnumerator.cs
- PassportIdentity.cs
- EntitySqlQueryBuilder.cs
- MultiBinding.cs
- SHA512Managed.cs
- SqlCacheDependency.cs
- StrongNameKeyPair.cs
- IdentityModelStringsVersion1.cs
- ExpressionContext.cs
- PresentationAppDomainManager.cs
- CheckoutException.cs
- SafeHGlobalHandleCritical.cs
- StorageEndPropertyMapping.cs
- BooleanAnimationUsingKeyFrames.cs
- ProgressChangedEventArgs.cs
- Expression.cs
- SimpleApplicationHost.cs
- connectionpool.cs
- ItemsPanelTemplate.cs
- BooleanFunctions.cs
- SqlDataReader.cs
- KeysConverter.cs
- WindowsComboBox.cs
- HostedImpersonationContext.cs
- AssemblyAssociatedContentFileAttribute.cs
- ComponentCollection.cs
- TrackingAnnotationCollection.cs
- SqlBulkCopyColumnMapping.cs
- ErrorFormatter.cs
- HtmlInputPassword.cs
- ActivityLocationReferenceEnvironment.cs
- Marshal.cs
- ProxyHelper.cs
- DragDeltaEventArgs.cs
- GPRECTF.cs
- SqlLiftWhereClauses.cs
- CodeNamespaceImportCollection.cs
- SessionState.cs
- WsatServiceCertificate.cs
- TdsParser.cs
- XPathChildIterator.cs
- Ref.cs
- HttpAsyncResult.cs
- EUCJPEncoding.cs
- FileSecurity.cs
- TextBoxView.cs
- EntityDataSourceContextDisposingEventArgs.cs
- Itemizer.cs
- PersonalizableAttribute.cs
- Focus.cs
- ManipulationLogic.cs
- CharEntityEncoderFallback.cs
- SourceSwitch.cs
- SchemaMapping.cs
- ParallelActivityDesigner.cs
- FocusChangedEventArgs.cs
- TextEmbeddedObject.cs
- DefaultWorkflowLoaderService.cs
- WarningException.cs
- SafeBitVector32.cs
- DoWhile.cs
- ResourceKey.cs
- DictionarySectionHandler.cs
- AnalyzedTree.cs
- Content.cs
- WsdlInspector.cs
- ListControl.cs
- ThemeableAttribute.cs
- SqlReferenceCollection.cs