Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartHeaderCloseVerb.cs / 2 / WebPartHeaderCloseVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartHeaderCloseVerb : WebPartActionVerb { // 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.WebPartHeaderCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? SR.GetString(SR.WebPartHeaderCloseVerb_Description) : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartHeaderCloseVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? SR.GetString(SR.WebPartHeaderCloseVerb_Text) : (string)o; } set { ViewState["Text"] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartHeaderCloseVerb : WebPartActionVerb { // 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.WebPartHeaderCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? SR.GetString(SR.WebPartHeaderCloseVerb_Description) : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartHeaderCloseVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? SR.GetString(SR.WebPartHeaderCloseVerb_Text) : (string)o; } set { ViewState["Text"] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValueExpressions.cs
- PeerNameRecordCollection.cs
- StackOverflowException.cs
- RecognizedWordUnit.cs
- SkewTransform.cs
- PropertyGridEditorPart.cs
- Vector3DAnimation.cs
- WorkerProcess.cs
- OleDbEnumerator.cs
- TypeDefinition.cs
- PEFileReader.cs
- PeerNameRegistration.cs
- SelectQueryOperator.cs
- AspNetSynchronizationContext.cs
- HttpRuntime.cs
- HiddenField.cs
- AutomationIdentifier.cs
- WorkflowIdleElement.cs
- ComponentEvent.cs
- DataTableReaderListener.cs
- BaseDataListActionList.cs
- EndpointConfigContainer.cs
- SynchronousChannelMergeEnumerator.cs
- EnumBuilder.cs
- _RequestLifetimeSetter.cs
- RelatedImageListAttribute.cs
- Int32Rect.cs
- ScriptMethodAttribute.cs
- XPathAncestorQuery.cs
- DataControlFieldCell.cs
- CancelRequestedQuery.cs
- DesignerLoader.cs
- CharacterMetricsDictionary.cs
- StrokeCollection2.cs
- DownloadProgressEventArgs.cs
- EmbeddedMailObject.cs
- WindowsFormsHostAutomationPeer.cs
- PropertyEntry.cs
- IndexOutOfRangeException.cs
- ErrorHandlingReceiver.cs
- ObjectDataSourceMethodEventArgs.cs
- Marshal.cs
- InvokePatternIdentifiers.cs
- ManualResetEvent.cs
- CreatingCookieEventArgs.cs
- SponsorHelper.cs
- LineBreak.cs
- TypeExtensions.cs
- ConfigXmlComment.cs
- ToolStripSettings.cs
- ConfigurationSection.cs
- RequestCacheManager.cs
- ReflectionPermission.cs
- SchemaSetCompiler.cs
- MeshGeometry3D.cs
- OdbcInfoMessageEvent.cs
- AspNetSynchronizationContext.cs
- HealthMonitoringSectionHelper.cs
- QueryActivatableWorkflowsCommand.cs
- DecoratedNameAttribute.cs
- Point3DConverter.cs
- EndpointConfigContainer.cs
- _SslState.cs
- CommandID.cs
- EdmItemError.cs
- FontUnitConverter.cs
- ZipIOModeEnforcingStream.cs
- XmlQueryContext.cs
- BinaryObjectReader.cs
- CompModSwitches.cs
- PermissionSetEnumerator.cs
- SharedConnectionWorkflowTransactionService.cs
- EdmType.cs
- NonPrimarySelectionGlyph.cs
- DesignerActionVerbList.cs
- DateTimeConstantAttribute.cs
- RegexCapture.cs
- SqlNotificationRequest.cs
- _NegoState.cs
- WebPartConnectionsEventArgs.cs
- TextEditorTyping.cs
- SQLInt64Storage.cs
- HttpListenerRequestTraceRecord.cs
- MachinePropertyVariants.cs
- WindowsTreeView.cs
- RadioButtonAutomationPeer.cs
- NaturalLanguageHyphenator.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- PackageStore.cs
- XmlStringTable.cs
- SqlMethodCallConverter.cs
- DataQuery.cs
- SecurityPermission.cs
- GradientBrush.cs
- ListParagraph.cs
- _ConnectStream.cs
- Application.cs
- OperandQuery.cs
- LayoutEvent.cs
- SecureEnvironment.cs