Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartConnectVerb.cs / 1 / WebPartConnectVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartConnectVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartConnectVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartConnectVerb_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.WebPartConnectVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartConnectVerb_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 WebPartConnectVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartConnectVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartConnectVerb_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.WebPartConnectVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartConnectVerb_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
- CryptoHelper.cs
- ObjectSecurity.cs
- WebHttpElement.cs
- SettingsPropertyCollection.cs
- FormViewDeletedEventArgs.cs
- SoapObjectReader.cs
- EpmContentSerializer.cs
- BitArray.cs
- TextEditorDragDrop.cs
- SafeRegistryHandle.cs
- BitVector32.cs
- SemanticKeyElement.cs
- Camera.cs
- DataGridSortCommandEventArgs.cs
- DeploymentSection.cs
- Int32CAMarshaler.cs
- XMLUtil.cs
- SoapAttributeAttribute.cs
- XmlSchemaSet.cs
- SymLanguageType.cs
- ConnectionStringsExpressionBuilder.cs
- CodeSnippetStatement.cs
- TreeViewAutomationPeer.cs
- OleDbDataAdapter.cs
- UIntPtr.cs
- Point3DAnimationBase.cs
- SizeKeyFrameCollection.cs
- COM2PictureConverter.cs
- MsmqHostedTransportManager.cs
- DropDownList.cs
- HtmlInputHidden.cs
- CodeGeneratorOptions.cs
- Int32CAMarshaler.cs
- AnonymousIdentificationModule.cs
- cookiecollection.cs
- DateTimeFormatInfo.cs
- TimelineGroup.cs
- CatalogPartCollection.cs
- OLEDB_Util.cs
- documentsequencetextpointer.cs
- QilChoice.cs
- FrameworkReadOnlyPropertyMetadata.cs
- StylusButtonCollection.cs
- XmlSecureResolver.cs
- SchemaNames.cs
- NullableConverter.cs
- ToolBarButtonClickEvent.cs
- SelectionBorderGlyph.cs
- AnnouncementDispatcherAsyncResult.cs
- IPipelineRuntime.cs
- WebPartCatalogCloseVerb.cs
- ExternalFile.cs
- WebPartConnectionsEventArgs.cs
- _HelperAsyncResults.cs
- HyperLink.cs
- BidOverLoads.cs
- CodeObjectCreateExpression.cs
- DecoderNLS.cs
- FaultFormatter.cs
- CaretElement.cs
- SamlAuthorityBinding.cs
- PriorityQueue.cs
- SamlAction.cs
- ColorAnimationUsingKeyFrames.cs
- XPathCompiler.cs
- CommandValueSerializer.cs
- ComponentResourceManager.cs
- Cast.cs
- RelationHandler.cs
- DynamicPropertyHolder.cs
- MarkupCompiler.cs
- PrimitiveDataContract.cs
- XmlSchemaValidator.cs
- RegexCharClass.cs
- TypeDescriptorFilterService.cs
- DateTimeFormatInfo.cs
- AccessDataSource.cs
- CellQuery.cs
- SoapReflectionImporter.cs
- ViewStateModeByIdAttribute.cs
- DataViewListener.cs
- Soap12FormatExtensions.cs
- MetadataArtifactLoaderCompositeResource.cs
- MatrixUtil.cs
- RegularExpressionValidator.cs
- TextTreeRootTextBlock.cs
- ComponentChangingEvent.cs
- SortQueryOperator.cs
- FormParameter.cs
- PropertyConverter.cs
- VideoDrawing.cs
- ProcessDesigner.cs
- RoleManagerModule.cs
- IgnoreFlushAndCloseStream.cs
- HtmlForm.cs
- Code.cs
- MaskedTextProvider.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DataTableNewRowEvent.cs
- TemplateEditingVerb.cs