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
- DataGridViewBindingCompleteEventArgs.cs
- ForwardPositionQuery.cs
- SmiXetterAccessMap.cs
- HwndProxyElementProvider.cs
- Maps.cs
- HttpCookie.cs
- PasswordPropertyTextAttribute.cs
- CopyNodeSetAction.cs
- CodeExpressionCollection.cs
- CustomPopupPlacement.cs
- ArraySet.cs
- EntityDataSourceWrapper.cs
- VScrollBar.cs
- HtmlElementErrorEventArgs.cs
- ContextMenuStripGroup.cs
- ContainerParaClient.cs
- PersonalizableTypeEntry.cs
- AlternateView.cs
- NameSpaceEvent.cs
- WorkItem.cs
- FileIOPermission.cs
- ControlParser.cs
- BamlBinaryWriter.cs
- HashCodeCombiner.cs
- WindowInteropHelper.cs
- assertwrapper.cs
- TextContainer.cs
- XamlSerializationHelper.cs
- GcHandle.cs
- FormsAuthenticationEventArgs.cs
- OleDbDataAdapter.cs
- SByte.cs
- ExternalFile.cs
- TextWriter.cs
- TypeValidationEventArgs.cs
- NaturalLanguageHyphenator.cs
- SafeLocalAllocation.cs
- BaseCAMarshaler.cs
- XsltLibrary.cs
- Predicate.cs
- PeerCollaborationPermission.cs
- OleDbConnectionFactory.cs
- RuleInfoComparer.cs
- PointCollectionConverter.cs
- ContractSearchPattern.cs
- StagingAreaInputItem.cs
- VersionValidator.cs
- WebMessageBodyStyleHelper.cs
- ClientApiGenerator.cs
- TypeBuilderInstantiation.cs
- SqlFacetAttribute.cs
- Menu.cs
- MatrixAnimationBase.cs
- ControlAdapter.cs
- DataRecordObjectView.cs
- ComPlusDiagnosticTraceRecords.cs
- Assert.cs
- HtmlElementEventArgs.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- TextElementCollectionHelper.cs
- NameScopePropertyAttribute.cs
- DbInsertCommandTree.cs
- MailAddress.cs
- AsyncSerializedWorker.cs
- Int64AnimationUsingKeyFrames.cs
- cookiecontainer.cs
- ConnectionPoint.cs
- _SecureChannel.cs
- QueryStringParameter.cs
- AppDomainShutdownMonitor.cs
- ParameterCollection.cs
- DynamicDataExtensions.cs
- XmlCharType.cs
- SingleSelectRootGridEntry.cs
- FixedPageProcessor.cs
- TemplateBaseAction.cs
- RelationshipFixer.cs
- HttpStaticObjectsCollectionWrapper.cs
- TailPinnedEventArgs.cs
- MsmqIntegrationSecurity.cs
- TextEditorSpelling.cs
- AdornerLayer.cs
- WaitHandle.cs
- CustomValidator.cs
- GeometryModel3D.cs
- DispatcherProcessingDisabled.cs
- TextRunProperties.cs
- WindowsListViewScroll.cs
- DataGridSortCommandEventArgs.cs
- TdsRecordBufferSetter.cs
- TrustManagerPromptUI.cs
- SessionPageStateSection.cs
- HttpGetProtocolImporter.cs
- DockingAttribute.cs
- WebRequest.cs
- AsyncOperationLifetimeManager.cs
- Point3DConverter.cs
- ZipPackage.cs
- SamlAuthenticationClaimResource.cs
- OLEDB_Util.cs