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 / 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
- MouseCaptureWithinProperty.cs
- ExtensibleSyndicationObject.cs
- SEHException.cs
- DataGridViewImageCell.cs
- BamlBinaryWriter.cs
- DiagnosticsConfigurationHandler.cs
- SmtpCommands.cs
- TextDecorationCollection.cs
- DataRow.cs
- ConstraintConverter.cs
- ResourcesBuildProvider.cs
- ContainerAction.cs
- OracleDateTime.cs
- HttpClientCredentialType.cs
- CommandConverter.cs
- DataFormat.cs
- HeaderUtility.cs
- ObjectListSelectEventArgs.cs
- DiscardableAttribute.cs
- DetailsView.cs
- NonVisualControlAttribute.cs
- PathFigureCollectionConverter.cs
- SoapExtension.cs
- ExecutionEngineException.cs
- TriggerAction.cs
- SendMailErrorEventArgs.cs
- PermissionToken.cs
- Invariant.cs
- DataRow.cs
- QueuedDeliveryRequirementsMode.cs
- DataGridView.cs
- CodeCastExpression.cs
- ItemCollectionEditor.cs
- TypeInfo.cs
- IDispatchConstantAttribute.cs
- QilGenerator.cs
- HostSecurityManager.cs
- FtpWebRequest.cs
- TextRunTypographyProperties.cs
- OleDbMetaDataFactory.cs
- LabelDesigner.cs
- RTLAwareMessageBox.cs
- XmlStreamStore.cs
- SynchronizationFilter.cs
- DataRowView.cs
- CollectionBase.cs
- SafeFileMappingHandle.cs
- DoubleLinkListEnumerator.cs
- GorillaCodec.cs
- Table.cs
- ListItemCollection.cs
- IndentedTextWriter.cs
- PageParserFilter.cs
- NetworkInterface.cs
- ScrollProviderWrapper.cs
- RankException.cs
- basenumberconverter.cs
- WebSysDisplayNameAttribute.cs
- IdentityReference.cs
- SignalGate.cs
- EntitySqlQueryCacheEntry.cs
- BitmapImage.cs
- Publisher.cs
- ListBoxChrome.cs
- DataGrid.cs
- IDataContractSurrogate.cs
- SemanticValue.cs
- RoleGroupCollection.cs
- WindowsStartMenu.cs
- TransactedReceiveData.cs
- OdbcPermission.cs
- RawStylusInputReport.cs
- InvokePatternIdentifiers.cs
- AccessorTable.cs
- TreeIterator.cs
- DocumentAutomationPeer.cs
- RequestQueue.cs
- QualificationDataAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridViewRowStateChangedEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- RectangleGeometry.cs
- Parameter.cs
- EntityDataReader.cs
- RadioButton.cs
- ErrorHandler.cs
- HwndKeyboardInputProvider.cs
- InvalidComObjectException.cs
- DataGridDesigner.cs
- XmlEntityReference.cs
- ClientType.cs
- FSWPathEditor.cs
- XmlValidatingReader.cs
- DefaultValueMapping.cs
- Documentation.cs
- DataGridHeaderBorder.cs
- MruCache.cs
- Point3DCollection.cs
- securestring.cs
- TextDecorations.cs