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
- ApplicationContext.cs
- WmlPanelAdapter.cs
- DocumentAutomationPeer.cs
- TypePresenter.xaml.cs
- IDQuery.cs
- WindowsIdentity.cs
- EventManager.cs
- HtmlControl.cs
- Argument.cs
- ProtocolsConfigurationEntry.cs
- Cursor.cs
- CLSCompliantAttribute.cs
- DbQueryCommandTree.cs
- UserControlParser.cs
- StringSource.cs
- SqlNotificationEventArgs.cs
- Simplifier.cs
- SchemaRegistration.cs
- StateDesigner.LayoutSelectionGlyph.cs
- PopupEventArgs.cs
- SplineKeyFrames.cs
- ClientTargetSection.cs
- ExtensionCollection.cs
- propertyentry.cs
- SecurityCredentialsManager.cs
- BitVec.cs
- mda.cs
- SafeViewOfFileHandle.cs
- TimeSpanOrInfiniteValidator.cs
- ComboBoxDesigner.cs
- CounterSample.cs
- XmlFormatMapping.cs
- NameTable.cs
- EventBuilder.cs
- EventLogConfiguration.cs
- MailSettingsSection.cs
- UnsafeNativeMethodsTablet.cs
- ScalarConstant.cs
- SystemNetworkInterface.cs
- AssemblyAttributes.cs
- DefaultParameterValueAttribute.cs
- TableCell.cs
- RootProfilePropertySettingsCollection.cs
- VerificationException.cs
- Int32KeyFrameCollection.cs
- CopyAction.cs
- SizeIndependentAnimationStorage.cs
- PermissionAttributes.cs
- EncryptedKeyIdentifierClause.cs
- WCFBuildProvider.cs
- ConnectionPointCookie.cs
- DesignerVerb.cs
- DesignTimeTemplateParser.cs
- PolyBezierSegment.cs
- TypeName.cs
- CryptoKeySecurity.cs
- Pair.cs
- DataGridViewIntLinkedList.cs
- ValidationError.cs
- WebBrowserProgressChangedEventHandler.cs
- SafeSystemMetrics.cs
- EndpointNameMessageFilter.cs
- RegexCaptureCollection.cs
- ToolboxItemSnapLineBehavior.cs
- HttpFileCollection.cs
- TimeSpan.cs
- ProfileGroupSettings.cs
- OptimisticConcurrencyException.cs
- InvalidEnumArgumentException.cs
- QueryContinueDragEvent.cs
- TypeDependencyAttribute.cs
- InternalException.cs
- ColumnHeader.cs
- TreeWalker.cs
- AnnotationHelper.cs
- FormatConvertedBitmap.cs
- ObjectQueryExecutionPlan.cs
- CatalogPartCollection.cs
- HttpDictionary.cs
- StringStorage.cs
- SoapSchemaMember.cs
- SqlXml.cs
- WinInet.cs
- Parser.cs
- ReferentialConstraint.cs
- CustomAttributeFormatException.cs
- RectangleHotSpot.cs
- PerformanceCounterManager.cs
- GridView.cs
- Array.cs
- TlsnegoTokenProvider.cs
- BoundingRectTracker.cs
- AnimationStorage.cs
- SqlDataSourceQuery.cs
- Expression.cs
- ResolveCriteria11.cs
- XmlExceptionHelper.cs
- CultureSpecificStringDictionary.cs
- SectionInput.cs
- ClientUtils.cs