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
- CompilerScopeManager.cs
- XmlMembersMapping.cs
- SingleObjectCollection.cs
- WebPartsPersonalization.cs
- Preprocessor.cs
- smtpconnection.cs
- PlatformNotSupportedException.cs
- AsymmetricKeyExchangeFormatter.cs
- TokenBasedSetEnumerator.cs
- TrackingProfileCache.cs
- WCFBuildProvider.cs
- RawKeyboardInputReport.cs
- MimeFormatter.cs
- DataSourceComponent.cs
- x509store.cs
- TdsEnums.cs
- ExtractCollection.cs
- StringResourceManager.cs
- KoreanLunisolarCalendar.cs
- EntityContainerAssociationSet.cs
- SplitterCancelEvent.cs
- COM2AboutBoxPropertyDescriptor.cs
- XmlUtf8RawTextWriter.cs
- BindingCompleteEventArgs.cs
- ChangeNode.cs
- RangeBaseAutomationPeer.cs
- XmlElementAttributes.cs
- XmlDocumentType.cs
- DrawingCollection.cs
- processwaithandle.cs
- WorkflowMessageEventHandler.cs
- NativeMethodsOther.cs
- StaticFileHandler.cs
- Calendar.cs
- DocumentsTrace.cs
- HttpListenerPrefixCollection.cs
- ValueSerializer.cs
- InfiniteIntConverter.cs
- TreeViewCancelEvent.cs
- ActivityCodeDomSerializationManager.cs
- CachedCompositeFamily.cs
- PersistNameAttribute.cs
- ComProxy.cs
- DefaultPropertyAttribute.cs
- InkCanvasInnerCanvas.cs
- XmlCharacterData.cs
- Geometry.cs
- GenericWebPart.cs
- UInt64Storage.cs
- DataGridColumn.cs
- MainMenu.cs
- Quad.cs
- CaretElement.cs
- DataGridViewSelectedCellCollection.cs
- LocalFileSettingsProvider.cs
- TreeViewAutomationPeer.cs
- WhitespaceReader.cs
- MessageBox.cs
- Array.cs
- UnsafeMethods.cs
- SchemaCollectionPreprocessor.cs
- PageHandlerFactory.cs
- EdmToObjectNamespaceMap.cs
- NodeInfo.cs
- TitleStyle.cs
- UnicodeEncoding.cs
- Camera.cs
- ApplicationDirectory.cs
- InputLangChangeEvent.cs
- CodeBinaryOperatorExpression.cs
- InvalidAsynchronousStateException.cs
- ProjectionRewriter.cs
- SizeLimitedCache.cs
- HttpAsyncResult.cs
- ObjectIDGenerator.cs
- LocalServiceSecuritySettingsElement.cs
- PrivilegedConfigurationManager.cs
- MissingSatelliteAssemblyException.cs
- TaskSchedulerException.cs
- ClockController.cs
- BamlBinaryWriter.cs
- ToolStripStatusLabel.cs
- TranslateTransform.cs
- ProcessModelSection.cs
- embossbitmapeffect.cs
- EntityCollection.cs
- TcpClientSocketManager.cs
- WindowsTooltip.cs
- XmlSchemaProviderAttribute.cs
- TimeoutException.cs
- DeviceContext2.cs
- AuthenticationSection.cs
- _UriTypeConverter.cs
- _ScatterGatherBuffers.cs
- HelpKeywordAttribute.cs
- SelectionService.cs
- RuleSettings.cs
- AssemblyCollection.cs
- SymmetricKeyWrap.cs
- ListBindingHelper.cs