Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartCloseVerb.cs / 1305376 / WebPartCloseVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartCloseVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartCloseVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartCloseVerb_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.WebPartCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCloseVerb_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
- FreezableOperations.cs
- PKCS1MaskGenerationMethod.cs
- SystemWebSectionGroup.cs
- QuotedPrintableStream.cs
- AsymmetricAlgorithm.cs
- SafeWaitHandle.cs
- WebPartDeleteVerb.cs
- StringHelper.cs
- UnmanagedMemoryStreamWrapper.cs
- AuthenticateEventArgs.cs
- DbConnectionPoolCounters.cs
- SimpleWorkerRequest.cs
- SmiEventSink_Default.cs
- DataKeyCollection.cs
- PageAsyncTask.cs
- DataGridViewRowPostPaintEventArgs.cs
- TransactionContext.cs
- EpmSyndicationContentSerializer.cs
- DoubleLinkList.cs
- arabicshape.cs
- ReadWriteObjectLock.cs
- SizeValueSerializer.cs
- WebServiceResponse.cs
- FillErrorEventArgs.cs
- StreamBodyWriter.cs
- MatrixStack.cs
- SqlUtils.cs
- Helper.cs
- PartialToken.cs
- RowToFieldTransformer.cs
- ResXBuildProvider.cs
- Int64.cs
- SerializationSectionGroup.cs
- TextDocumentView.cs
- LinkButton.cs
- DataGridViewColumnEventArgs.cs
- UrlRoutingModule.cs
- HtmlElementCollection.cs
- DetailsViewRowCollection.cs
- XmlAnyAttributeAttribute.cs
- SchemaImporter.cs
- ProxyFragment.cs
- ObjectDataSourceFilteringEventArgs.cs
- NamespaceMapping.cs
- DispatcherTimer.cs
- ItemsChangedEventArgs.cs
- ServiceMemoryGates.cs
- URI.cs
- XPathNodeIterator.cs
- BaseUriHelper.cs
- EntityAdapter.cs
- GeometryDrawing.cs
- Repeater.cs
- PolicyUnit.cs
- FileReservationCollection.cs
- ExtensionWindowHeader.cs
- MSG.cs
- TheQuery.cs
- WindowsSecurityTokenAuthenticator.cs
- ReceiveDesigner.xaml.cs
- InspectionWorker.cs
- RepeatInfo.cs
- WebPartEditorCancelVerb.cs
- DBNull.cs
- _NegoState.cs
- DefaultParameterValueAttribute.cs
- SchemaElementDecl.cs
- SmtpClient.cs
- typedescriptorpermissionattribute.cs
- ToolStripSettings.cs
- NameValuePermission.cs
- TreeNode.cs
- ToolStripDropDownClosingEventArgs.cs
- TimeoutHelper.cs
- IssuedTokenServiceCredential.cs
- SwitchLevelAttribute.cs
- GenericTextProperties.cs
- Oci.cs
- IApplicationTrustManager.cs
- RawStylusInputReport.cs
- FormClosedEvent.cs
- WebServiceMethodData.cs
- OrderedDictionaryStateHelper.cs
- ExeContext.cs
- InputBinding.cs
- DbConnectionPoolGroupProviderInfo.cs
- LongSumAggregationOperator.cs
- DefaultObjectMappingItemCollection.cs
- RemotingConfigParser.cs
- RequiredAttributeAttribute.cs
- SettingsPropertyValue.cs
- CheckBoxPopupAdapter.cs
- Odbc32.cs
- RemotingConfiguration.cs
- GradientBrush.cs
- KeyInstance.cs
- ProxyGenerationError.cs
- StatusBarDrawItemEvent.cs
- VisualBasicSettingsHandler.cs
- ImageClickEventArgs.cs