Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartEditorOkVerb.cs / 1305376 / 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
- PackageFilter.cs
- ContainerFilterService.cs
- ContentPresenter.cs
- DetailsViewModeEventArgs.cs
- Vector3dCollection.cs
- EmptyControlCollection.cs
- TextTreeTextBlock.cs
- GeometryHitTestResult.cs
- GenericWebPart.cs
- BitArray.cs
- CryptoStream.cs
- SafeSecurityHelper.cs
- CompositeFontFamily.cs
- OdbcEnvironment.cs
- Registration.cs
- RuleProcessor.cs
- HijriCalendar.cs
- EmbeddedMailObject.cs
- SynchronizationContext.cs
- DiscoveryMessageSequence11.cs
- DateTimeUtil.cs
- httpapplicationstate.cs
- RelationshipWrapper.cs
- IndexExpression.cs
- VisualStyleElement.cs
- TemplateBuilder.cs
- ApplicationManager.cs
- Transform3DGroup.cs
- PropertyRef.cs
- HwndSourceParameters.cs
- WebServiceParameterData.cs
- Symbol.cs
- CodeDefaultValueExpression.cs
- ContentValidator.cs
- IChannel.cs
- CompilerScopeManager.cs
- FlowLayoutPanel.cs
- AnnotationMap.cs
- MtomMessageEncodingBindingElement.cs
- shaperfactory.cs
- SimpleBitVector32.cs
- PageContentAsyncResult.cs
- PrintDialog.cs
- PropertyCondition.cs
- Journal.cs
- BamlLocalizer.cs
- FontSource.cs
- LineGeometry.cs
- XsltInput.cs
- DataGridItem.cs
- SendSecurityHeader.cs
- DefaultMergeHelper.cs
- DataGridViewCheckBoxColumn.cs
- AutomationPatternInfo.cs
- LongAverageAggregationOperator.cs
- SetterBase.cs
- ImageCodecInfo.cs
- RequestCache.cs
- AutomationEvent.cs
- serverconfig.cs
- SamlSecurityTokenAuthenticator.cs
- Bits.cs
- CacheHelper.cs
- SEHException.cs
- FixedStringLookup.cs
- SystemGatewayIPAddressInformation.cs
- ControlCommandSet.cs
- StateMachineSubscription.cs
- PropertyChangeTracker.cs
- SystemIPInterfaceProperties.cs
- DataControlButton.cs
- SQLGuidStorage.cs
- GroupQuery.cs
- RangeEnumerable.cs
- Token.cs
- TraceHandler.cs
- RuleInfoComparer.cs
- CancelEventArgs.cs
- DataSourceControlBuilder.cs
- RoleServiceManager.cs
- CompoundFileReference.cs
- DataRowCollection.cs
- SapiAttributeParser.cs
- GeneralTransformGroup.cs
- DbModificationClause.cs
- ACL.cs
- FrameworkContentElement.cs
- COM2PictureConverter.cs
- Rect.cs
- CodeCatchClauseCollection.cs
- BadImageFormatException.cs
- ServiceChannelFactory.cs
- State.cs
- CodeExpressionStatement.cs
- SrgsDocument.cs
- CustomWebEventKey.cs
- TimeStampChecker.cs
- PropertyPushdownHelper.cs
- wgx_commands.cs
- _SslStream.cs