Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartEditVerb.cs / 1 / WebPartEditVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartEditVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartEditVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartEditVerb_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.WebPartEditVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartEditVerb_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
- OutputCacheProfileCollection.cs
- GeometryCombineModeValidation.cs
- WindowAutomationPeer.cs
- NotFiniteNumberException.cs
- SynchronizedDispatch.cs
- RequestCachePolicyConverter.cs
- WinEventHandler.cs
- TransformProviderWrapper.cs
- WmlControlAdapter.cs
- HtmlTableRowCollection.cs
- ComponentResourceKey.cs
- SessionEndedEventArgs.cs
- DrawItemEvent.cs
- MDIControlStrip.cs
- CmsUtils.cs
- PropertyGridCommands.cs
- SafeSerializationManager.cs
- DataProtection.cs
- LineBreakRecord.cs
- GridViewUpdatedEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- TypeInfo.cs
- XPathException.cs
- StyleReferenceConverter.cs
- UrlMappingsModule.cs
- UiaCoreApi.cs
- ExceptionWrapper.cs
- TextRange.cs
- TraceProvider.cs
- StackOverflowException.cs
- ResetableIterator.cs
- RequestResizeEvent.cs
- ChtmlPageAdapter.cs
- RoleService.cs
- PathSegmentCollection.cs
- SafeNativeMethods.cs
- TextEndOfParagraph.cs
- DataGridViewHitTestInfo.cs
- FrameworkPropertyMetadata.cs
- TypeSystem.cs
- BuildManagerHost.cs
- SvcMapFileSerializer.cs
- EncryptedPackageFilter.cs
- TextEditorThreadLocalStore.cs
- Renderer.cs
- IntegerCollectionEditor.cs
- PopupRoot.cs
- PersonalizationDictionary.cs
- SemanticAnalyzer.cs
- MessagingDescriptionAttribute.cs
- SelectedDatesCollection.cs
- ActiveDocumentEvent.cs
- ServiceProviders.cs
- ScriptBehaviorDescriptor.cs
- WindowsScrollBar.cs
- SHA256CryptoServiceProvider.cs
- TemplatePropertyEntry.cs
- EmptyEnumerator.cs
- XomlDesignerLoader.cs
- DataContractSet.cs
- Table.cs
- ManipulationDevice.cs
- WebResourceAttribute.cs
- CollectionDataContract.cs
- EmptyStringExpandableObjectConverter.cs
- MSAAEventDispatcher.cs
- _SslStream.cs
- ApplyTemplatesAction.cs
- HtmlTableCell.cs
- MenuBase.cs
- EventBuilder.cs
- KeyToListMap.cs
- GcSettings.cs
- LogSwitch.cs
- PoisonMessageException.cs
- SignatureResourcePool.cs
- WebPartChrome.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- WebPartEditVerb.cs
- LayoutDump.cs
- ArrayHelper.cs
- DecimalAnimationBase.cs
- Gdiplus.cs
- CatchBlock.cs
- MiniConstructorInfo.cs
- BoundsDrawingContextWalker.cs
- PolyLineSegment.cs
- CodeCompileUnit.cs
- Object.cs
- ConvertersCollection.cs
- ConversionContext.cs
- xmlformatgeneratorstatics.cs
- COAUTHINFO.cs
- AnnotationAuthorChangedEventArgs.cs
- FormsAuthenticationEventArgs.cs
- WindowsSlider.cs
- ObjectToIdCache.cs
- SrgsDocumentParser.cs
- SpotLight.cs
- SingleTagSectionHandler.cs