Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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
- ReadContentAsBinaryHelper.cs
- ConfigXmlWhitespace.cs
- KnownColorTable.cs
- ellipse.cs
- ResXBuildProvider.cs
- DateBoldEvent.cs
- DynamicResourceExtension.cs
- SectionXmlInfo.cs
- XPathNavigatorKeyComparer.cs
- SimpleRecyclingCache.cs
- VisualStateGroup.cs
- Typography.cs
- FormClosedEvent.cs
- AppSettings.cs
- COM2PropertyPageUITypeConverter.cs
- ConstrainedDataObject.cs
- DesignerResources.cs
- UseLicense.cs
- CodeCompiler.cs
- PageAdapter.cs
- TypeForwardedToAttribute.cs
- MultiView.cs
- DataGridAutoFormat.cs
- Rectangle.cs
- HandleRef.cs
- CalendarAutomationPeer.cs
- ErrorTableItemStyle.cs
- LinkDescriptor.cs
- RootBrowserWindowAutomationPeer.cs
- ApplicationServiceManager.cs
- ProxyElement.cs
- WindowsListViewGroup.cs
- WindowsAuthenticationModule.cs
- DataBindingList.cs
- RecordManager.cs
- SizeAnimation.cs
- Console.cs
- HtmlForm.cs
- DataTableCollection.cs
- PropertyGridEditorPart.cs
- PropertyGridCommands.cs
- DateTimeParse.cs
- ExceptionRoutedEventArgs.cs
- ParserHooks.cs
- Camera.cs
- ViewPort3D.cs
- PageVisual.cs
- CombinedTcpChannel.cs
- QueryResponse.cs
- AnnotationAdorner.cs
- QueryReaderSettings.cs
- ReadOnlyAttribute.cs
- ProfileParameter.cs
- Expression.cs
- ExpressionEvaluator.cs
- Missing.cs
- Point.cs
- ReferencedAssembly.cs
- Condition.cs
- _ContextAwareResult.cs
- PinnedBufferMemoryStream.cs
- CollectionViewProxy.cs
- _OverlappedAsyncResult.cs
- DataGridViewRowHeaderCell.cs
- DeleteHelper.cs
- FormParameter.cs
- ApplicationManager.cs
- ListMarkerSourceInfo.cs
- LinqDataSourceContextData.cs
- GuidConverter.cs
- XmlSchemaException.cs
- FolderBrowserDialog.cs
- TaskFactory.cs
- XmlCountingReader.cs
- CustomErrorsSectionWrapper.cs
- Rule.cs
- LayoutExceptionEventArgs.cs
- FixedDSBuilder.cs
- WebPartTransformerAttribute.cs
- DataSourceControlBuilder.cs
- SQLInt16.cs
- LayoutTableCell.cs
- WebSysDescriptionAttribute.cs
- DataSource.cs
- X509UI.cs
- TextMetrics.cs
- SecurityTokenResolver.cs
- DataGridItem.cs
- MemberInfoSerializationHolder.cs
- TraceInternal.cs
- DataContractSet.cs
- AttachmentService.cs
- FormatterConverter.cs
- XmlDataSource.cs
- DbMetaDataCollectionNames.cs
- WindowsRebar.cs
- OTFRasterizer.cs
- BigInt.cs
- ExpandCollapsePattern.cs
- NavigationExpr.cs