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
- PrintPreviewDialog.cs
- DataServiceRequestException.cs
- DetailsViewRowCollection.cs
- DocumentOrderQuery.cs
- HttpListener.cs
- FixUpCollection.cs
- XsdDuration.cs
- DataGrid.cs
- MatrixValueSerializer.cs
- SecureUICommand.cs
- DeobfuscatingStream.cs
- FtpWebRequest.cs
- ImageDrawing.cs
- WhitespaceRuleLookup.cs
- XpsResourcePolicy.cs
- GPStream.cs
- ExceptionNotification.cs
- WebPartEditorApplyVerb.cs
- SyndicationFeed.cs
- DataGridViewCellStyleConverter.cs
- Icon.cs
- SoapHeaderException.cs
- InArgumentConverter.cs
- DataGridViewSelectedColumnCollection.cs
- FolderBrowserDialogDesigner.cs
- DockingAttribute.cs
- DataServiceStreamProviderWrapper.cs
- HandlerBase.cs
- TypeDescriptionProviderAttribute.cs
- CheckBoxAutomationPeer.cs
- Parser.cs
- ReadOnlyDataSourceView.cs
- SiteMapDataSourceDesigner.cs
- TextDecorations.cs
- FontSizeConverter.cs
- SecurityCriticalDataForSet.cs
- CompositeFontInfo.cs
- DataStorage.cs
- ToolStripItemEventArgs.cs
- UnsafeNetInfoNativeMethods.cs
- XmlSchemaExternal.cs
- _NegoState.cs
- Quack.cs
- WebResponse.cs
- TextRangeBase.cs
- XmlSerializableReader.cs
- CompositeDataBoundControl.cs
- SchemaInfo.cs
- SchemaImporterExtensionElementCollection.cs
- InternalPermissions.cs
- PropertyTabChangedEvent.cs
- DependencyObjectCodeDomSerializer.cs
- AdapterUtil.cs
- ImageSource.cs
- SqlNotificationEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- SecurityImpersonationBehavior.cs
- Bezier.cs
- TreeNodeEventArgs.cs
- HtmlGenericControl.cs
- SessionPageStatePersister.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SecureUICommand.cs
- PropertyPathConverter.cs
- path.cs
- ObjectKeyFrameCollection.cs
- ThreadExceptionDialog.cs
- SpnEndpointIdentityExtension.cs
- HttpContext.cs
- _AcceptOverlappedAsyncResult.cs
- CharacterHit.cs
- WebUtility.cs
- LocalizableAttribute.cs
- DbConnectionClosed.cs
- DataSourceHelper.cs
- GeometryModel3D.cs
- PackageFilter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TdsParserSessionPool.cs
- DataGridViewColumnEventArgs.cs
- JpegBitmapEncoder.cs
- TextEndOfLine.cs
- UntypedNullExpression.cs
- HasCopySemanticsAttribute.cs
- ToolStripProgressBar.cs
- Util.cs
- StrongNameMembershipCondition.cs
- CardSpaceSelector.cs
- ClientSponsor.cs
- BufferedReadStream.cs
- CFGGrammar.cs
- FusionWrap.cs
- SBCSCodePageEncoding.cs
- Query.cs
- HttpListener.cs
- UriExt.cs
- XamlSerializer.cs
- DataGridViewSelectedRowCollection.cs
- WinHttpWebProxyFinder.cs