Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartCloseVerb.cs / 1 / WebPartCloseVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartCloseVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartCloseVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartCloseVerb_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.WebPartCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCloseVerb_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
- WeakReferenceList.cs
- recordstatescratchpad.cs
- ReflectEventDescriptor.cs
- rsa.cs
- MessageFault.cs
- _NestedMultipleAsyncResult.cs
- Globals.cs
- Margins.cs
- FontInfo.cs
- DelegatingStream.cs
- PassportAuthenticationModule.cs
- ConfigurationSettings.cs
- DataGridCellClipboardEventArgs.cs
- PropertyIDSet.cs
- SortAction.cs
- TreeNodeCollectionEditorDialog.cs
- complextypematerializer.cs
- XmlAttributeOverrides.cs
- CngUIPolicy.cs
- DataView.cs
- DateTimeSerializationSection.cs
- SoapTypeAttribute.cs
- CellPartitioner.cs
- WebPartConnectionsCloseVerb.cs
- IPAddress.cs
- Point3DKeyFrameCollection.cs
- EventDescriptorCollection.cs
- SingleAnimationUsingKeyFrames.cs
- HttpConfigurationContext.cs
- IndexOutOfRangeException.cs
- DataServiceProcessingPipelineEventArgs.cs
- WindowPatternIdentifiers.cs
- WindowsListViewGroup.cs
- DPTypeDescriptorContext.cs
- DataGridBoolColumn.cs
- RelatedView.cs
- CodeCatchClause.cs
- TimeSpanOrInfiniteConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- RootProfilePropertySettingsCollection.cs
- XmlSignatureProperties.cs
- DiffuseMaterial.cs
- RankException.cs
- TransactionBridge.cs
- SrgsElement.cs
- WinEventTracker.cs
- OdbcError.cs
- ObjRef.cs
- JumpList.cs
- ContextBase.cs
- IdnElement.cs
- _KerberosClient.cs
- HttpClientCertificate.cs
- Base64Stream.cs
- SyndicationItem.cs
- TimeoutException.cs
- CompositeActivityCodeGenerator.cs
- IntegerValidatorAttribute.cs
- IndentTextWriter.cs
- GeometryGroup.cs
- GeometryModel3D.cs
- ProfileParameter.cs
- DataTablePropertyDescriptor.cs
- SafeNativeMethods.cs
- XmlNodeChangedEventArgs.cs
- Preprocessor.cs
- FileUpload.cs
- LinearGradientBrush.cs
- ContainsRowNumberChecker.cs
- TypeSystemHelpers.cs
- Debugger.cs
- PositiveTimeSpanValidator.cs
- DataControlFieldCollection.cs
- FileNotFoundException.cs
- WebConfigurationManager.cs
- SqlRecordBuffer.cs
- Style.cs
- MemoryFailPoint.cs
- TableItemStyle.cs
- MediaPlayerState.cs
- OperationAbortedException.cs
- TagPrefixCollection.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TypeViewSchema.cs
- InputLanguageSource.cs
- BooleanExpr.cs
- SurrogateEncoder.cs
- DataTablePropertyDescriptor.cs
- ScrollViewer.cs
- Visitor.cs
- InstanceHandle.cs
- LinkButton.cs
- BufferedGraphicsManager.cs
- EncoderParameters.cs
- ToolStripItemGlyph.cs
- RequestCache.cs
- DefaultAssemblyResolver.cs
- SafeFileMapViewHandle.cs
- ComboBoxRenderer.cs
- RadioButton.cs