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
- DataGridParentRows.cs
- ReflectPropertyDescriptor.cs
- HttpCachePolicyElement.cs
- PropertyGridCommands.cs
- Stylesheet.cs
- QueryCreatedEventArgs.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataRowComparer.cs
- ArcSegment.cs
- CalendarDateChangedEventArgs.cs
- EncoderParameters.cs
- DBCommand.cs
- ServicePerformanceCounters.cs
- NetDataContractSerializer.cs
- AlphabetConverter.cs
- XmlUTF8TextWriter.cs
- RepeaterDataBoundAdapter.cs
- InkCanvasSelection.cs
- DataListGeneralPage.cs
- SchemaMerger.cs
- SchemaCollectionCompiler.cs
- UdpTransportBindingElement.cs
- SendMailErrorEventArgs.cs
- Win32KeyboardDevice.cs
- ClientUtils.cs
- TagMapCollection.cs
- TimelineGroup.cs
- __TransparentProxy.cs
- tibetanshape.cs
- FamilyTypefaceCollection.cs
- OrderingExpression.cs
- SwitchLevelAttribute.cs
- FixedSOMSemanticBox.cs
- SoundPlayer.cs
- ControlIdConverter.cs
- GreaterThan.cs
- IsolatedStorageException.cs
- ObjectConverter.cs
- BindingMAnagerBase.cs
- UnsafeNativeMethods.cs
- ExtenderProviderService.cs
- QilInvokeEarlyBound.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SettingsPropertyValueCollection.cs
- SerialReceived.cs
- CodeAccessPermission.cs
- CapiNative.cs
- processwaithandle.cs
- WpfWebRequestHelper.cs
- SimpleBitVector32.cs
- IOThreadTimer.cs
- ListChangedEventArgs.cs
- NTAccount.cs
- HostingEnvironmentSection.cs
- ResXFileRef.cs
- ReturnType.cs
- DBSchemaRow.cs
- CodeCatchClauseCollection.cs
- XmlNotation.cs
- XmlSerializer.cs
- SocketException.cs
- SchemaImporterExtensionsSection.cs
- GlyphRun.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ZeroOpNode.cs
- AuthenticateEventArgs.cs
- MailBnfHelper.cs
- OletxTransactionManager.cs
- DataTable.cs
- MailWriter.cs
- ListDataHelper.cs
- metrodevice.cs
- ListViewItem.cs
- SqlConnectionHelper.cs
- DesignerInterfaces.cs
- TransformGroup.cs
- PolyQuadraticBezierSegment.cs
- Parameter.cs
- DesignerCategoryAttribute.cs
- RightsManagementEncryptedStream.cs
- ParallelLoopState.cs
- FormsAuthenticationUser.cs
- ToolboxItemCollection.cs
- FocusChangedEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- PageSettings.cs
- IgnoreDataMemberAttribute.cs
- GACMembershipCondition.cs
- EditorZoneAutoFormat.cs
- VisualTreeUtils.cs
- CodeDelegateInvokeExpression.cs
- ElementNotAvailableException.cs
- SqlServices.cs
- XmlChildEnumerator.cs
- _ConnectionGroup.cs
- columnmapfactory.cs
- OracleConnectionStringBuilder.cs
- TrackBar.cs
- TypeInitializationException.cs
- StringSorter.cs