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
- EventDescriptorCollection.cs
- RoutedEventHandlerInfo.cs
- TextControlDesigner.cs
- BindingElement.cs
- CodePrimitiveExpression.cs
- PropertyInfoSet.cs
- PersonalizablePropertyEntry.cs
- HebrewCalendar.cs
- WindowsRichEdit.cs
- ImageClickEventArgs.cs
- ToolBarButtonClickEvent.cs
- MailWriter.cs
- MonthChangedEventArgs.cs
- SecurityTokenException.cs
- EventQueueState.cs
- BoundField.cs
- NamespaceInfo.cs
- UInt32.cs
- CustomErrorCollection.cs
- MouseActionValueSerializer.cs
- IncrementalHitTester.cs
- ParameterToken.cs
- ParameterCollection.cs
- DynamicRenderer.cs
- HexParser.cs
- MarginCollapsingState.cs
- NumericUpDownAccelerationCollection.cs
- InstancePersistenceException.cs
- path.cs
- TextFormatter.cs
- ViewCellSlot.cs
- AuthenticationException.cs
- documentation.cs
- LogStream.cs
- X509AudioLogo.cs
- SchemaElementLookUpTable.cs
- RoleGroup.cs
- InputScopeConverter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Encoding.cs
- ContextMenuStrip.cs
- SmiMetaData.cs
- ExeConfigurationFileMap.cs
- TranslateTransform3D.cs
- ObservableDictionary.cs
- SourceLineInfo.cs
- QilGeneratorEnv.cs
- NodeFunctions.cs
- TransportContext.cs
- XmlDataImplementation.cs
- BroadcastEventHelper.cs
- SingleResultAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- FixedSOMTableCell.cs
- TextTreeText.cs
- DataGridCellAutomationPeer.cs
- PageEventArgs.cs
- SafeSecurityHandles.cs
- DataControlLinkButton.cs
- XmlDictionaryReaderQuotas.cs
- BuildManager.cs
- SubMenuStyleCollectionEditor.cs
- AutomationAttributeInfo.cs
- DataServiceRequestOfT.cs
- WeakReference.cs
- EventLogTraceListener.cs
- CreateUserWizardStep.cs
- elementinformation.cs
- ResolveMatchesMessage11.cs
- ApplicationServiceManager.cs
- XsltArgumentList.cs
- AstTree.cs
- FunctionUpdateCommand.cs
- Utils.cs
- VisemeEventArgs.cs
- FileLoadException.cs
- PreservationFileWriter.cs
- ListItem.cs
- AssemblyResourceLoader.cs
- InfoCardSchemas.cs
- AssemblyHash.cs
- SoapMessage.cs
- ReferencedAssembly.cs
- EntityDataSourceContextCreatedEventArgs.cs
- DataSourceControlBuilder.cs
- TemplatePropertyEntry.cs
- Registry.cs
- WorkflowServiceHost.cs
- Listbox.cs
- MultiView.cs
- InvalidPrinterException.cs
- Timer.cs
- CollectionViewGroupInternal.cs
- DebugView.cs
- DbProviderFactories.cs
- ParentQuery.cs
- Int32Storage.cs
- GeneralTransform3D.cs
- EdmProperty.cs
- PackageDigitalSignatureManager.cs