Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActiveXHelper.cs
- HttpValueCollection.cs
- RemotingConfiguration.cs
- NamespaceEmitter.cs
- PartialCachingAttribute.cs
- MobileCategoryAttribute.cs
- RuntimeHandles.cs
- InternalResources.cs
- TokenDescriptor.cs
- FixedSOMTableRow.cs
- EpmHelper.cs
- unsafenativemethodsother.cs
- SvcMapFileLoader.cs
- WorkflowMarkupSerializationProvider.cs
- File.cs
- HttpTransportBindingElement.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- MemberMaps.cs
- Walker.cs
- RadioButton.cs
- Transactions.cs
- WmlValidationSummaryAdapter.cs
- PaperSize.cs
- WebEventCodes.cs
- Model3DCollection.cs
- DbModificationCommandTree.cs
- QilLoop.cs
- LayoutEditorPart.cs
- SmtpFailedRecipientException.cs
- WizardPanel.cs
- Shape.cs
- ToolboxItem.cs
- PngBitmapEncoder.cs
- IPipelineRuntime.cs
- PersistencePipeline.cs
- PersonalizationProvider.cs
- SerializationFieldInfo.cs
- WarningException.cs
- FullTrustAssembly.cs
- DirectionalLight.cs
- Size.cs
- ShaderEffect.cs
- SmtpAuthenticationManager.cs
- URLAttribute.cs
- SoapWriter.cs
- WhiteSpaceTrimStringConverter.cs
- DataServiceHost.cs
- PrinterUnitConvert.cs
- XsdBuilder.cs
- PostBackOptions.cs
- FieldAccessException.cs
- DataGridViewRow.cs
- BinaryObjectInfo.cs
- XamlSerializer.cs
- WindowsAuthenticationModule.cs
- JumpPath.cs
- MetabaseServerConfig.cs
- ServiceObjectContainer.cs
- SyndicationSerializer.cs
- MulticastDelegate.cs
- SrgsRulesCollection.cs
- IdentityReference.cs
- XamlStyleSerializer.cs
- LocatorGroup.cs
- SafeHandles.cs
- HandledEventArgs.cs
- Trigger.cs
- Publisher.cs
- DuplexChannel.cs
- PropertyGridView.cs
- ConfigurationManagerHelperFactory.cs
- RelationshipEnd.cs
- baseaxisquery.cs
- DetailsViewRow.cs
- ObjectViewEntityCollectionData.cs
- DataGridTextBoxColumn.cs
- GenericAuthenticationEventArgs.cs
- DateTimeConverter.cs
- ToolZoneDesigner.cs
- PiiTraceSource.cs
- GetWinFXPath.cs
- TiffBitmapDecoder.cs
- ServerIdentity.cs
- FolderBrowserDialog.cs
- RegexStringValidator.cs
- DataSourceViewSchemaConverter.cs
- ObfuscationAttribute.cs
- ReachSerializerAsync.cs
- MatrixAnimationBase.cs
- Misc.cs
- ScrollViewerAutomationPeer.cs
- PngBitmapDecoder.cs
- TemplateControl.cs
- HitTestParameters.cs
- DataBindingExpressionBuilder.cs
- CSharpCodeProvider.cs
- DataServiceEntityAttribute.cs
- IsolatedStorageSecurityState.cs
- ValidationHelper.cs
- Stroke.cs