Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemBrushes.cs
- RequiredFieldValidator.cs
- ConfigurationSettings.cs
- ProviderException.cs
- METAHEADER.cs
- URLMembershipCondition.cs
- ArglessEventHandlerProxy.cs
- MailHeaderInfo.cs
- StreamResourceInfo.cs
- EncodingStreamWrapper.cs
- ResourceSet.cs
- DiscoveryClientReferences.cs
- TableCellAutomationPeer.cs
- ToolStripKeyboardHandlingService.cs
- ParseHttpDate.cs
- OdbcHandle.cs
- DriveNotFoundException.cs
- UnmanagedHandle.cs
- SID.cs
- SiteOfOriginPart.cs
- Scene3D.cs
- NameValueCollection.cs
- DataObjectEventArgs.cs
- ITreeGenerator.cs
- HttpHandlerAction.cs
- X509Utils.cs
- SqlDelegatedTransaction.cs
- UndoEngine.cs
- TextBoxLine.cs
- AsynchronousChannelMergeEnumerator.cs
- WorkflowOperationContext.cs
- SqlDataSourceCustomCommandPanel.cs
- SystemKeyConverter.cs
- _SpnDictionary.cs
- XmlSchemaException.cs
- PointLight.cs
- AstTree.cs
- StringPropertyBuilder.cs
- SpecialFolderEnumConverter.cs
- FileEnumerator.cs
- TextEffectCollection.cs
- CustomCategoryAttribute.cs
- JournalEntryListConverter.cs
- XPathDocument.cs
- VisualProxy.cs
- ReflectEventDescriptor.cs
- VirtualizingPanel.cs
- SR.cs
- SerialReceived.cs
- SchemaImporterExtensionElementCollection.cs
- DataFormat.cs
- ConnectionManagementElementCollection.cs
- HtmlHistory.cs
- ResourceCategoryAttribute.cs
- XmlCharType.cs
- PersonalizationStateQuery.cs
- QueryOptionExpression.cs
- EntitySetDataBindingList.cs
- ControlBindingsCollection.cs
- SemanticResultValue.cs
- UInt64Storage.cs
- DataGridViewCellPaintingEventArgs.cs
- _AuthenticationState.cs
- MimeFormatExtensions.cs
- COM2Properties.cs
- StorageBasedPackageProperties.cs
- SqlDataSourceCache.cs
- MultilineStringConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- PlatformCulture.cs
- OutputCacheProfileCollection.cs
- DynamicFilterExpression.cs
- TranslateTransform.cs
- AsyncPostBackTrigger.cs
- ValidationEventArgs.cs
- WebSysDescriptionAttribute.cs
- MappingItemCollection.cs
- Comparer.cs
- PowerStatus.cs
- SocketPermission.cs
- ImmutableDispatchRuntime.cs
- ToolCreatedEventArgs.cs
- CacheChildrenQuery.cs
- OverflowException.cs
- TemplateXamlParser.cs
- CompModSwitches.cs
- SchemeSettingElement.cs
- PlatformCulture.cs
- login.cs
- DocumentOrderQuery.cs
- FragmentQuery.cs
- TemplateControlParser.cs
- GridViewColumn.cs
- Floater.cs
- Ipv6Element.cs
- DataListComponentEditor.cs
- AuthenticateEventArgs.cs
- DiscreteKeyFrames.cs
- DnsCache.cs
- LostFocusEventManager.cs