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 / WebPartEditorOkVerb.cs / 1 / WebPartEditorOkVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartEditorOKVerb : 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.WebPartEditorOKVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? SR.GetString(SR.WebPartEditorOKVerb_Description) : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartEditorOKVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? SR.GetString(SR.WebPartEditorOKVerb_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. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartEditorOKVerb : 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.WebPartEditorOKVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? SR.GetString(SR.WebPartEditorOKVerb_Description) : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartEditorOKVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? SR.GetString(SR.WebPartEditorOKVerb_Text) : (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
- FrameworkContentElement.cs
- _ChunkParse.cs
- SecurityResources.cs
- DesignerSerializerAttribute.cs
- ClusterRegistryConfigurationProvider.cs
- SingleQueryOperator.cs
- Privilege.cs
- MediaCommands.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BooleanKeyFrameCollection.cs
- XPathEmptyIterator.cs
- NameValuePermission.cs
- TriggerBase.cs
- Codec.cs
- BulletedListEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- FreezableOperations.cs
- CorrelationToken.cs
- DockingAttribute.cs
- Hash.cs
- XmlResolver.cs
- HttpModuleActionCollection.cs
- InfoCardHelper.cs
- LocalizableAttribute.cs
- MultiBinding.cs
- NullRuntimeConfig.cs
- StrongNameIdentityPermission.cs
- ErrorTolerantObjectWriter.cs
- PenThreadPool.cs
- securitycriticaldataformultiplegetandset.cs
- TraceListener.cs
- SqlProviderManifest.cs
- FixedSOMFixedBlock.cs
- OLEDB_Enum.cs
- _FixedSizeReader.cs
- SingleAnimation.cs
- ValidationHelper.cs
- EventLogger.cs
- Native.cs
- SelectionEditingBehavior.cs
- TypeDescriptionProviderAttribute.cs
- TextParaLineResult.cs
- XmlBinaryReaderSession.cs
- RoleGroupCollectionEditor.cs
- GridViewHeaderRowPresenter.cs
- UInt64Storage.cs
- WindowsAuthenticationEventArgs.cs
- X509Chain.cs
- UrlMappingCollection.cs
- altserialization.cs
- SerialReceived.cs
- Wizard.cs
- TypedRowHandler.cs
- TargetParameterCountException.cs
- DiffuseMaterial.cs
- WindowsAltTab.cs
- MetafileHeaderWmf.cs
- StringWriter.cs
- SspiNegotiationTokenAuthenticator.cs
- AggregationMinMaxHelpers.cs
- NetNamedPipeBindingCollectionElement.cs
- QueryValue.cs
- ByteStream.cs
- AnimationException.cs
- ProcessThread.cs
- ResourceIDHelper.cs
- ProxyWebPartConnectionCollection.cs
- ReadWriteSpinLock.cs
- PolyQuadraticBezierSegment.cs
- SocketInformation.cs
- AsyncWaitHandle.cs
- XmlnsCompatibleWithAttribute.cs
- TextTreeUndoUnit.cs
- FormatConvertedBitmap.cs
- HtmlInputButton.cs
- CompilerTypeWithParams.cs
- CodeIndexerExpression.cs
- StateMachine.cs
- SessionChannels.cs
- DataFormat.cs
- KnownColorTable.cs
- HtmlInputCheckBox.cs
- SmtpCommands.cs
- Dynamic.cs
- SocketElement.cs
- SQLDoubleStorage.cs
- LogManagementAsyncResult.cs
- ToolStripLabel.cs
- QilExpression.cs
- DataIdProcessor.cs
- CompositeKey.cs
- VisualTreeHelper.cs
- InfoCardProofToken.cs
- TreeNodeMouseHoverEvent.cs
- SelectionProviderWrapper.cs
- Pair.cs
- DataBindEngine.cs
- SymDocumentType.cs
- EditorZone.cs
- __Filters.cs