Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } } // 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
- CodeDOMUtility.cs
- KeyInterop.cs
- Rect3DConverter.cs
- EventLogPropertySelector.cs
- CreateUserWizardDesigner.cs
- XmlTypeAttribute.cs
- XmlNodeChangedEventArgs.cs
- MonthCalendar.cs
- DynamicResourceExtension.cs
- ContextMenuAutomationPeer.cs
- _NegoStream.cs
- ItemCollection.cs
- RootBrowserWindowProxy.cs
- ContractMethodParameterInfo.cs
- RC2.cs
- QilXmlWriter.cs
- SoapSchemaImporter.cs
- LineBreak.cs
- QuaternionRotation3D.cs
- RectangleConverter.cs
- HMACSHA256.cs
- SafeLibraryHandle.cs
- SqlDataSourceView.cs
- SqlTypeConverter.cs
- IndexingContentUnit.cs
- CompilerParameters.cs
- PlanCompiler.cs
- DataGridViewRowStateChangedEventArgs.cs
- SymmetricKey.cs
- DesignerCategoryAttribute.cs
- PagesSection.cs
- AnimationException.cs
- _SslState.cs
- WebSysDisplayNameAttribute.cs
- PageAsyncTask.cs
- ResourcePermissionBase.cs
- FieldNameLookup.cs
- OutputCacheSettingsSection.cs
- SpeakInfo.cs
- basecomparevalidator.cs
- Membership.cs
- DataAdapter.cs
- DropDownButton.cs
- SafeNativeMethodsCLR.cs
- LOSFormatter.cs
- TextProviderWrapper.cs
- DbUpdateCommandTree.cs
- AlignmentYValidation.cs
- ListViewItem.cs
- SqlTriggerAttribute.cs
- Variable.cs
- IntSecurity.cs
- Action.cs
- ObjectStateManagerMetadata.cs
- XmlEnumAttribute.cs
- VarInfo.cs
- ComponentResourceManager.cs
- NegotiateStream.cs
- HttpWebRequestElement.cs
- Int64KeyFrameCollection.cs
- CodeConstructor.cs
- EdmProviderManifest.cs
- WindowsContainer.cs
- VolatileEnlistmentState.cs
- InstalledVoice.cs
- TreeNode.cs
- KeyGestureValueSerializer.cs
- ActiveXSite.cs
- PersistenceException.cs
- UIElement.cs
- ScriptResourceInfo.cs
- LabelLiteral.cs
- ListItemCollection.cs
- QuotedPrintableStream.cs
- GrowingArray.cs
- CompareInfo.cs
- PrtTicket_Public_Simple.cs
- SchemaMerger.cs
- LicenseManager.cs
- FontWeights.cs
- EditorPartCollection.cs
- DBConnectionString.cs
- GeometryDrawing.cs
- MD5Cng.cs
- DeobfuscatingStream.cs
- CommonDialog.cs
- MediaElement.cs
- TagPrefixAttribute.cs
- RC2CryptoServiceProvider.cs
- SqlRemoveConstantOrderBy.cs
- Psha1DerivedKeyGenerator.cs
- NoneExcludedImageIndexConverter.cs
- PluralizationServiceUtil.cs
- RelationshipFixer.cs
- CalendarButtonAutomationPeer.cs
- StringOutput.cs
- DuplexChannelBinder.cs
- XmlSchemaNotation.cs
- ThicknessConverter.cs
- DataChangedEventManager.cs