Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CacheVirtualItemsEvent.cs
- WSHttpSecurity.cs
- LayoutSettings.cs
- DataGridSortCommandEventArgs.cs
- TextProperties.cs
- DesignerSelectionListAdapter.cs
- MessageDecoder.cs
- ToolConsole.cs
- XmlNodeComparer.cs
- SHA1.cs
- MetadataElement.cs
- XmlSchemaElement.cs
- DataListGeneralPage.cs
- HtmlWindowCollection.cs
- ObjectTag.cs
- EmptyImpersonationContext.cs
- ListBox.cs
- UInt64.cs
- SecurityPolicyVersion.cs
- UnsafeCollabNativeMethods.cs
- AttributeEmitter.cs
- WorkflowOperationErrorHandler.cs
- Metafile.cs
- IProvider.cs
- MetadataArtifactLoaderCompositeFile.cs
- TextCompositionEventArgs.cs
- ErrorWebPart.cs
- FixedPageAutomationPeer.cs
- PrintEvent.cs
- ProcessHostFactoryHelper.cs
- ContentElement.cs
- CharUnicodeInfo.cs
- XslVisitor.cs
- _ListenerAsyncResult.cs
- DbDataRecord.cs
- WindowsAuthenticationEventArgs.cs
- _UriTypeConverter.cs
- Roles.cs
- DeviceContext.cs
- XmlObjectSerializerReadContext.cs
- ChangeConflicts.cs
- Validator.cs
- EventMappingSettingsCollection.cs
- RuleSettings.cs
- BitStream.cs
- DynamicPropertyHolder.cs
- SqlDataSourceCommandEventArgs.cs
- PageClientProxyGenerator.cs
- TreeViewItem.cs
- KeyConverter.cs
- CodeConditionStatement.cs
- Hashtable.cs
- EndpointDiscoveryMetadata.cs
- MimeFormReflector.cs
- SQLConvert.cs
- XmlReaderDelegator.cs
- ProcessThreadDesigner.cs
- WebPartUserCapability.cs
- PagesSection.cs
- TreeNodeStyle.cs
- SafeLocalMemHandle.cs
- SymLanguageVendor.cs
- AnonymousIdentificationSection.cs
- ConnectionProviderAttribute.cs
- DocumentGrid.cs
- NameValuePermission.cs
- HierarchicalDataBoundControl.cs
- WebPartRestoreVerb.cs
- Attributes.cs
- SrgsSubset.cs
- OrthographicCamera.cs
- ProfilePropertyMetadata.cs
- CriticalExceptions.cs
- RelatedImageListAttribute.cs
- XmlMemberMapping.cs
- PrefixHandle.cs
- SpecialNameAttribute.cs
- StandardMenuStripVerb.cs
- ComProxy.cs
- XmlAnyElementAttributes.cs
- CommonXSendMessage.cs
- DbProviderConfigurationHandler.cs
- TextElementAutomationPeer.cs
- DomainConstraint.cs
- FindCriteriaApril2005.cs
- AnnouncementInnerClient11.cs
- ColumnReorderedEventArgs.cs
- HtmlForm.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- GifBitmapDecoder.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- Panel.cs
- SspiSafeHandles.cs
- RelationalExpressions.cs
- WebPartZoneCollection.cs
- WindowsHyperlink.cs
- ITextView.cs
- HostProtectionPermission.cs
- ZipIOExtraField.cs
- TemplatedEditableDesignerRegion.cs