Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDeleteVerb.cs / 1 / WebPartDeleteVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_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
- Int16KeyFrameCollection.cs
- ColorAnimationUsingKeyFrames.cs
- ProcessingInstructionAction.cs
- SspiSecurityTokenProvider.cs
- XmlAttributeCollection.cs
- ExpressionList.cs
- SoapIncludeAttribute.cs
- BitmapSizeOptions.cs
- FunctionImportMapping.cs
- StorageBasedPackageProperties.cs
- TableParaClient.cs
- ExpressionConverter.cs
- CopyAttributesAction.cs
- Container.cs
- DeferredElementTreeState.cs
- LinearGradientBrush.cs
- UserControlDesigner.cs
- RegionData.cs
- SByteConverter.cs
- AuthStoreRoleProvider.cs
- PropertyEntry.cs
- CursorConverter.cs
- SchemaDeclBase.cs
- MemberProjectionIndex.cs
- AdapterUtil.cs
- PriorityQueue.cs
- DataObject.cs
- HttpApplicationFactory.cs
- TypeSystem.cs
- CodeIdentifier.cs
- Sql8ConformanceChecker.cs
- HtmlEmptyTagControlBuilder.cs
- assemblycache.cs
- DbMetaDataCollectionNames.cs
- ReadOnlyHierarchicalDataSource.cs
- Column.cs
- BidirectionalDictionary.cs
- UInt16Converter.cs
- SchemaCreator.cs
- Debugger.cs
- BindingBase.cs
- DBCommandBuilder.cs
- SecurityUtils.cs
- DataGridPreparingCellForEditEventArgs.cs
- InputLanguageManager.cs
- TimersDescriptionAttribute.cs
- HostSecurityManager.cs
- HttpHeaderCollection.cs
- SamlAuthorityBinding.cs
- SerializationInfo.cs
- HtmlElementEventArgs.cs
- SqlPersonalizationProvider.cs
- BoolExpr.cs
- HighlightComponent.cs
- TraceSource.cs
- BindingMemberInfo.cs
- TableRowCollection.cs
- OdbcDataAdapter.cs
- PermissionSetEnumerator.cs
- WebScriptEndpoint.cs
- ProfilePropertyNameValidator.cs
- CollectionBuilder.cs
- AuthenticationManager.cs
- ResourceDefaultValueAttribute.cs
- OperandQuery.cs
- EncoderFallback.cs
- SoapProtocolReflector.cs
- PointLightBase.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DocumentPageView.cs
- WebZoneDesigner.cs
- VisualBasicImportReference.cs
- AssemblyResourceLoader.cs
- FontStretchConverter.cs
- TdsParserStateObject.cs
- BufferBuilder.cs
- AjaxFrameworkAssemblyAttribute.cs
- AxisAngleRotation3D.cs
- FixedSOMPage.cs
- Image.cs
- NewArrayExpression.cs
- PtsContext.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- StructuredProperty.cs
- SqlClientPermission.cs
- AttributeEmitter.cs
- EdmType.cs
- DotAtomReader.cs
- ComponentChangedEvent.cs
- ListViewInsertedEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- WeakReference.cs
- CrossSiteScriptingValidation.cs
- DiscoveryServerProtocol.cs
- AspNetRouteServiceHttpHandler.cs
- ProxyManager.cs
- ContainerControl.cs
- IndentedTextWriter.cs
- SafePEFileHandle.cs
- ListBase.cs