Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartHelpVerb.cs / 1 / WebPartHelpVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartHelpVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartHelpVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartHelpVerb_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.WebPartHelpVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartHelpVerb_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
- BreadCrumbTextConverter.cs
- SimplePropertyEntry.cs
- DataKeyPropertyAttribute.cs
- BasicCellRelation.cs
- oledbconnectionstring.cs
- Validator.cs
- HtmlInputReset.cs
- IssuanceTokenProviderBase.cs
- FieldDescriptor.cs
- ExpressionBuilder.cs
- ConfigXmlAttribute.cs
- DiscoveryClientDocuments.cs
- ServiceNotStartedException.cs
- AnimationException.cs
- EntityDataReader.cs
- ToolStripArrowRenderEventArgs.cs
- ZipQueryOperator.cs
- AudioException.cs
- ThicknessConverter.cs
- PeoplePickerWrapper.cs
- RegisteredExpandoAttribute.cs
- XmlEnumAttribute.cs
- PointLightBase.cs
- RSAOAEPKeyExchangeFormatter.cs
- FunctionImportElement.cs
- XamlStyleSerializer.cs
- WindowAutomationPeer.cs
- Item.cs
- DictionaryChange.cs
- Types.cs
- XmlCodeExporter.cs
- PageAsyncTaskManager.cs
- QilChoice.cs
- Converter.cs
- LinqDataSourceDisposeEventArgs.cs
- FixedSOMContainer.cs
- MetadataArtifactLoaderResource.cs
- RangeExpression.cs
- _FixedSizeReader.cs
- DialogResultConverter.cs
- _ListenerResponseStream.cs
- DictionaryBase.cs
- Style.cs
- SerTrace.cs
- IOException.cs
- Scene3D.cs
- ExpressionBindings.cs
- TargetInvocationException.cs
- SqlMethods.cs
- VisualBasicHelper.cs
- IconEditor.cs
- latinshape.cs
- DataTableReader.cs
- ContentDisposition.cs
- SqlProviderManifest.cs
- ParallelDesigner.cs
- UpdateTranslator.cs
- DataServiceHost.cs
- TextBoxView.cs
- KeyTimeConverter.cs
- ImageListImage.cs
- HtmlTable.cs
- NumericExpr.cs
- DynamicDocumentPaginator.cs
- ResXDataNode.cs
- RenderContext.cs
- ObjectView.cs
- Attributes.cs
- HttpContextServiceHost.cs
- XmlAttribute.cs
- GPRECTF.cs
- InvalidComObjectException.cs
- AffineTransform3D.cs
- CodeEntryPointMethod.cs
- StringValidator.cs
- Operator.cs
- ClosureBinding.cs
- X509ChainPolicy.cs
- ObjectManager.cs
- DiagnosticsConfigurationHandler.cs
- Listbox.cs
- Resources.Designer.cs
- XPathSelectionIterator.cs
- BufferedConnection.cs
- PagesSection.cs
- StringValidatorAttribute.cs
- WorkflowOperationBehavior.cs
- GenericAuthenticationEventArgs.cs
- SequenceFullException.cs
- SqlDataSourceTableQuery.cs
- KeyNotFoundException.cs
- DataServiceQueryProvider.cs
- SqlFileStream.cs
- DrawListViewColumnHeaderEventArgs.cs
- SerializationSectionGroup.cs
- FunctionUpdateCommand.cs
- KnownColorTable.cs
- Cell.cs
- MethodBuilder.cs
- TemplatedAdorner.cs