Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmFunction.cs
- UIPermission.cs
- MergePropertyDescriptor.cs
- BaseCodePageEncoding.cs
- BlurEffect.cs
- ActivityCompletionCallbackWrapper.cs
- IsolatedStorageException.cs
- TcpTransportSecurity.cs
- Sql8ConformanceChecker.cs
- SlipBehavior.cs
- XamlInt32CollectionSerializer.cs
- SpecialNameAttribute.cs
- ProcessDesigner.cs
- CodeExporter.cs
- AesCryptoServiceProvider.cs
- MissingMethodException.cs
- CqlLexerHelpers.cs
- ByteStack.cs
- TrailingSpaceComparer.cs
- NumericUpDown.cs
- InputScopeManager.cs
- ObsoleteAttribute.cs
- XmlSchemaObject.cs
- EntityDataSourceColumn.cs
- IdentitySection.cs
- objectquery_tresulttype.cs
- ChildChangedEventArgs.cs
- CurrentChangingEventArgs.cs
- OperationResponse.cs
- RepeaterItemCollection.cs
- Lasso.cs
- ReadonlyMessageFilter.cs
- WebBrowser.cs
- TextAutomationPeer.cs
- UserControl.cs
- Exceptions.cs
- DataGridRelationshipRow.cs
- XmlWriterSettings.cs
- DataListItemCollection.cs
- IHttpResponseInternal.cs
- SQLByte.cs
- FunctionCommandText.cs
- RegexBoyerMoore.cs
- ListMarkerSourceInfo.cs
- NamespaceQuery.cs
- PropertyInfoSet.cs
- FrameDimension.cs
- FontEmbeddingManager.cs
- DynamicMethod.cs
- StaticFileHandler.cs
- OutputCacheModule.cs
- BaseAsyncResult.cs
- StylusPlugInCollection.cs
- SqlServices.cs
- PointCollectionValueSerializer.cs
- XPathDescendantIterator.cs
- CqlLexer.cs
- Slider.cs
- HttpCacheVaryByContentEncodings.cs
- XamlContextStack.cs
- Freezable.cs
- UIInitializationException.cs
- FixedBufferAttribute.cs
- _LocalDataStoreMgr.cs
- TreeNodeMouseHoverEvent.cs
- CqlLexerHelpers.cs
- BinaryParser.cs
- CfgParser.cs
- DecoderBestFitFallback.cs
- CharEnumerator.cs
- RadioButton.cs
- LineServices.cs
- storepermission.cs
- HandlerBase.cs
- Size.cs
- EnumerableWrapperWeakToStrong.cs
- Form.cs
- SerialStream.cs
- SBCSCodePageEncoding.cs
- TableSectionStyle.cs
- NonVisualControlAttribute.cs
- CodeGen.cs
- WebEvents.cs
- ItemsPresenter.cs
- ToolstripProfessionalRenderer.cs
- WebControlAdapter.cs
- Point.cs
- XslTransform.cs
- ChangeDirector.cs
- EntryPointNotFoundException.cs
- HtmlElementEventArgs.cs
- EventArgs.cs
- TypeUnloadedException.cs
- SingleStorage.cs
- ContextMenuAutomationPeer.cs
- StateMachineWorkflowDesigner.cs
- MonitorWrapper.cs
- SmtpMail.cs
- DrawingImage.cs
- DateTimeParse.cs