Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } } // 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
- SR.cs
- ConfigurationStrings.cs
- DataComponentNameHandler.cs
- Model3DGroup.cs
- Lookup.cs
- WindowsSolidBrush.cs
- XmlEventCache.cs
- printdlgexmarshaler.cs
- BrowsableAttribute.cs
- InstanceNormalEvent.cs
- ThemeDirectoryCompiler.cs
- OdbcTransaction.cs
- ProfessionalColors.cs
- DataGridDesigner.cs
- COM2PropertyPageUITypeConverter.cs
- DataGridViewBand.cs
- SortAction.cs
- ScriptServiceAttribute.cs
- DetailsViewPagerRow.cs
- KeyboardEventArgs.cs
- FilteredAttributeCollection.cs
- CheckPair.cs
- Debugger.cs
- SystemUdpStatistics.cs
- SrgsRule.cs
- LogicalExpr.cs
- FormParameter.cs
- IisTraceListener.cs
- SelectionEditingBehavior.cs
- ZipQueryOperator.cs
- XMLSyntaxException.cs
- SqlWorkflowInstanceStoreLock.cs
- Unit.cs
- CfgSemanticTag.cs
- SafeNativeMethods.cs
- StorageEntityContainerMapping.cs
- ServiceAuthorizationBehavior.cs
- EdmFunctionAttribute.cs
- RijndaelManagedTransform.cs
- AdornerHitTestResult.cs
- TemplateBuilder.cs
- UnsafeNativeMethodsPenimc.cs
- FormViewPagerRow.cs
- RawKeyboardInputReport.cs
- ReceiveSecurityHeaderElementManager.cs
- DataConnectionHelper.cs
- FilterableAttribute.cs
- UxThemeWrapper.cs
- XmlSchemaAnnotation.cs
- TransactionFlowAttribute.cs
- MetadataItem.cs
- Matrix3DConverter.cs
- ViewLoader.cs
- XmlnsCompatibleWithAttribute.cs
- ReachDocumentReferenceSerializer.cs
- TimeZoneNotFoundException.cs
- HitTestParameters.cs
- HiddenFieldPageStatePersister.cs
- GridViewActionList.cs
- TabPage.cs
- DrawingAttributeSerializer.cs
- InstanceView.cs
- OutputCacheModule.cs
- DateTimeSerializationSection.cs
- _DisconnectOverlappedAsyncResult.cs
- MessageQueueAccessControlEntry.cs
- DeploymentSection.cs
- SchemaImporterExtensionElement.cs
- GacUtil.cs
- SuppressIldasmAttribute.cs
- CodeIterationStatement.cs
- ParameterElementCollection.cs
- LicFileLicenseProvider.cs
- SystemParameters.cs
- VisualTarget.cs
- ToolboxItemCollection.cs
- StylusEditingBehavior.cs
- DataServiceBehavior.cs
- AssemblyNameProxy.cs
- GridEntry.cs
- FixedBufferAttribute.cs
- ProfileParameter.cs
- listitem.cs
- XmlUtil.cs
- SpeechSeg.cs
- TemplatePropertyEntry.cs
- HtmlButton.cs
- WindowsFormsLinkLabel.cs
- PreDigestedSignedInfo.cs
- ZoneButton.cs
- WebConfigurationManager.cs
- BufferedGraphicsContext.cs
- XPathDocumentIterator.cs
- TypeLibConverter.cs
- QueryProcessor.cs
- ProviderBase.cs
- TextCompositionEventArgs.cs
- SourceItem.cs
- RuleSettings.cs
- Vector3D.cs