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
- SecurityPolicySection.cs
- AbstractExpressions.cs
- AnnotationHelper.cs
- WasEndpointConfigContainer.cs
- IntSecurity.cs
- ScaleTransform3D.cs
- DataGridBeginningEditEventArgs.cs
- _emptywebproxy.cs
- SafeProcessHandle.cs
- XmlSchemaSimpleType.cs
- QilTypeChecker.cs
- Icon.cs
- CodeCommentStatement.cs
- DefaultDiscoveryService.cs
- XmlRootAttribute.cs
- ButtonField.cs
- ValidatorCollection.cs
- BaseHashHelper.cs
- TableStyle.cs
- PartialCachingAttribute.cs
- XmlElementList.cs
- CompiledQueryCacheKey.cs
- RightsManagementInformation.cs
- _ConnectionGroup.cs
- XmlNamespaceManager.cs
- AppDomainCompilerProxy.cs
- TileBrush.cs
- EventHandlerList.cs
- CellTreeNode.cs
- TextTreeRootNode.cs
- ThemeDictionaryExtension.cs
- UserControl.cs
- ProxyWebPartConnectionCollection.cs
- InfoCardKeyedHashAlgorithm.cs
- PersistStreamTypeWrapper.cs
- SqlRemoveConstantOrderBy.cs
- ControlPropertyNameConverter.cs
- BindValidationContext.cs
- SmtpException.cs
- SqlClientPermission.cs
- CollectionChange.cs
- DesignerDataStoredProcedure.cs
- FilterQueryOptionExpression.cs
- ProxyAttribute.cs
- AuthorizationSection.cs
- RequestCacheManager.cs
- AuthenticatedStream.cs
- AppModelKnownContentFactory.cs
- ContentElementCollection.cs
- DateTimeEditor.cs
- RegexMatch.cs
- SerialReceived.cs
- TreeViewImageKeyConverter.cs
- Size.cs
- DateTimeOffset.cs
- UserControlBuildProvider.cs
- TypeContext.cs
- StreamUpdate.cs
- BevelBitmapEffect.cs
- SqlProfileProvider.cs
- WebScriptServiceHost.cs
- TemplateControlBuildProvider.cs
- WindowsListViewSubItem.cs
- CodeCommentStatement.cs
- Semaphore.cs
- Facet.cs
- DiffuseMaterial.cs
- ToolStripRenderer.cs
- TreeBuilder.cs
- DataKeyArray.cs
- HotSpotCollection.cs
- XmlDesignerDataSourceView.cs
- WaitingCursor.cs
- Error.cs
- OdbcReferenceCollection.cs
- LicenseException.cs
- PathHelper.cs
- FileDialog.cs
- XmlAggregates.cs
- HttpContextWrapper.cs
- ConfigurationValidatorBase.cs
- SizeConverter.cs
- Attributes.cs
- hwndwrapper.cs
- SettingsBindableAttribute.cs
- DesignerEventService.cs
- TextContainer.cs
- NullableLongMinMaxAggregationOperator.cs
- FontWeight.cs
- JoinGraph.cs
- Matrix3DValueSerializer.cs
- CultureData.cs
- OperatorExpressions.cs
- GeneratedView.cs
- OdbcCommandBuilder.cs
- ProtocolViolationException.cs
- ReflectEventDescriptor.cs
- ErrorWrapper.cs
- XPathParser.cs
- CodeNamespaceCollection.cs