Code:
/ DotNET / DotNET / 8.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
- GeometryModel3D.cs
- ControlBindingsConverter.cs
- UDPClient.cs
- XsdDuration.cs
- ServiceDocumentFormatter.cs
- NotificationContext.cs
- OdbcPermission.cs
- CollectionAdapters.cs
- RouteValueDictionary.cs
- XmlChoiceIdentifierAttribute.cs
- BrowsableAttribute.cs
- ChameleonKey.cs
- Int32.cs
- UserControlCodeDomTreeGenerator.cs
- ToolStripControlHost.cs
- CalendarDateRange.cs
- ResumeStoryboard.cs
- HtmlLiteralTextAdapter.cs
- TcpConnectionPoolSettings.cs
- ButtonColumn.cs
- GeneralTransform3DGroup.cs
- Privilege.cs
- AsymmetricSignatureFormatter.cs
- JapaneseLunisolarCalendar.cs
- ModuleConfigurationInfo.cs
- GregorianCalendar.cs
- SessionStateSection.cs
- TextCharacters.cs
- GatewayIPAddressInformationCollection.cs
- StructuredType.cs
- RepeaterCommandEventArgs.cs
- WindowsTooltip.cs
- DataComponentGenerator.cs
- Compress.cs
- XmlMembersMapping.cs
- MenuBase.cs
- TrackingRecord.cs
- UndoManager.cs
- COM2FontConverter.cs
- GenericEnumConverter.cs
- TraceContextRecord.cs
- NavigationProperty.cs
- ScriptBehaviorDescriptor.cs
- PropertyReferenceSerializer.cs
- AsyncResult.cs
- ComponentDesigner.cs
- Message.cs
- SafeNativeMethods.cs
- HostUtils.cs
- UntrustedRecipientException.cs
- TypeNameConverter.cs
- MarginsConverter.cs
- QualificationDataAttribute.cs
- ImageSourceConverter.cs
- MsmqHostedTransportConfiguration.cs
- FieldAccessException.cs
- DispatchWrapper.cs
- BuildResultCache.cs
- DataBoundControlAdapter.cs
- IndentedWriter.cs
- FormsAuthenticationCredentials.cs
- TextBox.cs
- altserialization.cs
- TypeToken.cs
- ObjectReaderCompiler.cs
- IApplicationTrustManager.cs
- PropertyDescriptor.cs
- AssemblyUtil.cs
- LayoutManager.cs
- FontFamilyConverter.cs
- XmlSchemaDocumentation.cs
- OleDbParameter.cs
- AsyncPostBackErrorEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ConnectionStringsExpressionBuilder.cs
- XmlNamespaceMapping.cs
- XmlTextAttribute.cs
- TextProperties.cs
- COM2ExtendedTypeConverter.cs
- DataColumnPropertyDescriptor.cs
- DynamicDataRouteHandler.cs
- AutoCompleteStringCollection.cs
- SchemaCollectionCompiler.cs
- WebPartAuthorizationEventArgs.cs
- HtmlInputControl.cs
- ChangeInterceptorAttribute.cs
- RtfControls.cs
- Logging.cs
- FormViewRow.cs
- DurableOperationContext.cs
- DispatcherTimer.cs
- SingleKeyFrameCollection.cs
- HtmlHistory.cs
- ClientType.cs
- ProcessThread.cs
- CLRBindingWorker.cs
- CombinedGeometry.cs
- GlobalizationSection.cs
- EditorBrowsableAttribute.cs
- SqlDataSourceFilteringEventArgs.cs