Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDeleteVerb.cs / 1 / WebPartDeleteVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_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
- MeasureItemEvent.cs
- FloatAverageAggregationOperator.cs
- Wrapper.cs
- HtmlControl.cs
- PrincipalPermissionMode.cs
- LoginView.cs
- BasicExpressionVisitor.cs
- Single.cs
- DragCompletedEventArgs.cs
- FastEncoderWindow.cs
- GridViewCommandEventArgs.cs
- Visitor.cs
- KoreanLunisolarCalendar.cs
- XmlEnumAttribute.cs
- ContainerSelectorGlyph.cs
- TheQuery.cs
- HttpClientProtocol.cs
- IxmlLineInfo.cs
- _PooledStream.cs
- CompositionDesigner.cs
- Quaternion.cs
- NotSupportedException.cs
- DiscoveryDocumentSearchPattern.cs
- Authorization.cs
- UniqueEventHelper.cs
- AdRotator.cs
- ChildTable.cs
- MatrixConverter.cs
- CodeMethodInvokeExpression.cs
- HttpModuleCollection.cs
- TransformerInfo.cs
- sqlpipe.cs
- CodeAccessSecurityEngine.cs
- ResourceDescriptionAttribute.cs
- BindingObserver.cs
- ExpressionEditorAttribute.cs
- FileDataSourceCache.cs
- followingquery.cs
- DataGridSortCommandEventArgs.cs
- RoleGroup.cs
- WebConvert.cs
- RevocationPoint.cs
- ActivationService.cs
- XmlWriterDelegator.cs
- TextServicesDisplayAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- StateMachine.cs
- QilIterator.cs
- SimplePropertyEntry.cs
- VisemeEventArgs.cs
- TraceSwitch.cs
- SqlInternalConnection.cs
- IsolatedStorage.cs
- Stack.cs
- DBAsyncResult.cs
- DefaultPrintController.cs
- UpdateCommandGenerator.cs
- ChannelManager.cs
- EventLogPermissionEntry.cs
- TypedReference.cs
- TableColumnCollectionInternal.cs
- SchemaImporterExtensionsSection.cs
- XmlILOptimizerVisitor.cs
- PreservationFileWriter.cs
- DragEvent.cs
- ValidationErrorCollection.cs
- ObjectHandle.cs
- UrlAuthFailedErrorFormatter.cs
- WebPartEditorApplyVerb.cs
- TrustManagerPromptUI.cs
- PageHandlerFactory.cs
- Stylesheet.cs
- Margins.cs
- IdnElement.cs
- PointCollectionValueSerializer.cs
- PersonalizationStateInfoCollection.cs
- PeerTransportSecuritySettings.cs
- MobileComponentEditorPage.cs
- ILGenerator.cs
- _HeaderInfoTable.cs
- Itemizer.cs
- DetailsViewUpdatedEventArgs.cs
- HttpCacheVary.cs
- TitleStyle.cs
- LicenseException.cs
- TypeDescriptionProvider.cs
- GuidConverter.cs
- ZipIOExtraField.cs
- FileStream.cs
- EventLogger.cs
- WSTrust.cs
- CallContext.cs
- TableParagraph.cs
- SafeNativeMethods.cs
- ETagAttribute.cs
- PasswordPropertyTextAttribute.cs
- WorkflowInstanceContextProvider.cs
- CharAnimationUsingKeyFrames.cs
- AppSettingsReader.cs
- TypeReference.cs