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
- DataControlField.cs
- OutputCacheSettingsSection.cs
- BodyGlyph.cs
- QueryPageSettingsEventArgs.cs
- BindingExpressionBase.cs
- SerializationEventsCache.cs
- WindowPattern.cs
- Activator.cs
- QilLoop.cs
- PropertyValueChangedEvent.cs
- PreviewPageInfo.cs
- TextBoxLine.cs
- MdiWindowListItemConverter.cs
- QueryContext.cs
- APCustomTypeDescriptor.cs
- WebPartCancelEventArgs.cs
- RepeatBehavior.cs
- WindowsTab.cs
- VideoDrawing.cs
- translator.cs
- KerberosSecurityTokenProvider.cs
- RC2CryptoServiceProvider.cs
- DesignTimeParseData.cs
- DataControlCommands.cs
- Cursor.cs
- TextUtf8RawTextWriter.cs
- EndOfStreamException.cs
- FixedSOMTableCell.cs
- ReferenceConverter.cs
- SchemaElement.cs
- ExtensionWindowHeader.cs
- InstanceDescriptor.cs
- VersionPair.cs
- CodeDomSerializationProvider.cs
- WinEventHandler.cs
- X509UI.cs
- BamlLocalizer.cs
- BuildDependencySet.cs
- SqlDataSourceView.cs
- XmlSchemaCompilationSettings.cs
- RegexInterpreter.cs
- ParallelTimeline.cs
- CollectionAdapters.cs
- ContractListAdapter.cs
- HostedTcpTransportManager.cs
- InvalidWMPVersionException.cs
- TextModifierScope.cs
- EmbeddedMailObjectsCollection.cs
- XmlSchemaGroup.cs
- DataTable.cs
- MetadataArtifactLoaderFile.cs
- assemblycache.cs
- FileDialogPermission.cs
- DocobjHost.cs
- RtfNavigator.cs
- SingleTagSectionHandler.cs
- XmlUrlResolver.cs
- OneOfConst.cs
- EdmItemCollection.cs
- DesignerForm.cs
- ExpandableObjectConverter.cs
- SoapElementAttribute.cs
- AvTraceFormat.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- CollectionType.cs
- ApplicationSecurityManager.cs
- EventLogPermissionHolder.cs
- GestureRecognitionResult.cs
- PrinterSettings.cs
- ApplicationDirectoryMembershipCondition.cs
- CompilerParameters.cs
- XmlSchemaGroupRef.cs
- ToolStrip.cs
- MarkupCompiler.cs
- ObjectDisposedException.cs
- InvokePattern.cs
- OneOfElement.cs
- OleDbConnection.cs
- AlignmentYValidation.cs
- Column.cs
- ReaderWriterLock.cs
- AddInPipelineAttributes.cs
- EntityReference.cs
- unitconverter.cs
- SqlDataSourceCommandEventArgs.cs
- ObjectMemberMapping.cs
- ToolStripItemCollection.cs
- DataGridViewCellParsingEventArgs.cs
- ServiceParser.cs
- TextWriterTraceListener.cs
- WebPermission.cs
- TabPanel.cs
- DataColumnPropertyDescriptor.cs
- XPathPatternParser.cs
- Attributes.cs
- FormsAuthenticationConfiguration.cs
- PrtTicket_Public.cs
- _NestedSingleAsyncResult.cs
- HttpServerVarsCollection.cs
- TimelineCollection.cs