Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDeleteVerb.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaParticle.cs
- UpDownBase.cs
- StaticTextPointer.cs
- WSSecureConversationFeb2005.cs
- SqlBuilder.cs
- WorkflowApplicationUnloadedException.cs
- TypeInitializationException.cs
- EndpointDesigner.cs
- DataBindingHandlerAttribute.cs
- SqlCrossApplyToCrossJoin.cs
- Helpers.cs
- EntityDataSourceColumn.cs
- XmlSchemaChoice.cs
- Operators.cs
- SharedPerformanceCounter.cs
- SystemUnicastIPAddressInformation.cs
- ComponentManagerBroker.cs
- Command.cs
- BrowsableAttribute.cs
- TemplateKeyConverter.cs
- TdsParser.cs
- InternalMappingException.cs
- DataRecord.cs
- CodeArgumentReferenceExpression.cs
- ModuleBuilder.cs
- DbConnectionClosed.cs
- DBSqlParserTable.cs
- IdleTimeoutMonitor.cs
- KeyboardDevice.cs
- RichTextBoxConstants.cs
- AbstractSvcMapFileLoader.cs
- remotingproxy.cs
- HitTestWithPointDrawingContextWalker.cs
- TextSchema.cs
- TextRenderer.cs
- ArglessEventHandlerProxy.cs
- SelectionWordBreaker.cs
- CodeTryCatchFinallyStatement.cs
- ByteRangeDownloader.cs
- ObjectContextServiceProvider.cs
- MouseEvent.cs
- EntityViewGenerator.cs
- TextTreeExtractElementUndoUnit.cs
- SortedSet.cs
- FormatterServices.cs
- ConfigurationException.cs
- XmlPreloadedResolver.cs
- EmitterCache.cs
- FontStyleConverter.cs
- UrlMappingsSection.cs
- ContractListAdapter.cs
- EntityDesignerUtils.cs
- XmlWrappingReader.cs
- WindowsListViewGroupSubsetLink.cs
- XsdBuildProvider.cs
- MetricEntry.cs
- MailBnfHelper.cs
- InvalidateEvent.cs
- DbInsertCommandTree.cs
- Deflater.cs
- Brushes.cs
- DefaultPerformanceCounters.cs
- EventArgs.cs
- Char.cs
- TextTreeDeleteContentUndoUnit.cs
- UIElementAutomationPeer.cs
- XsltArgumentList.cs
- RuleSetDialog.cs
- TypefaceMetricsCache.cs
- View.cs
- IPHostEntry.cs
- XmlCharacterData.cs
- DataTableClearEvent.cs
- XmlCharCheckingReader.cs
- TraceSource.cs
- ConfigurationSectionCollection.cs
- _ConnectOverlappedAsyncResult.cs
- ComContractElement.cs
- complextypematerializer.cs
- SystemIcmpV4Statistics.cs
- dbenumerator.cs
- Interlocked.cs
- XappLauncher.cs
- SystemIPAddressInformation.cs
- EventProviderWriter.cs
- HGlobalSafeHandle.cs
- GridViewAutoFormat.cs
- XmlDeclaration.cs
- tooltip.cs
- SqlDataAdapter.cs
- OutputCacheModule.cs
- SafeTimerHandle.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DeferredRunTextReference.cs
- DriveNotFoundException.cs
- ReflectPropertyDescriptor.cs
- HttpResponseInternalBase.cs
- BitmapEffectInput.cs
- TimeoutException.cs
- JsonCollectionDataContract.cs