Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartCatalogAddVerb.cs / 1 / WebPartCatalogAddVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartCatalogAddVerb : 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.WebPartCatalogAddVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_Description) : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCatalogAddVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_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 WebPartCatalogAddVerb : 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.WebPartCatalogAddVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_Description) : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCatalogAddVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? SR.GetString(SR.WebPartCatalogAddVerb_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
- Bidi.cs
- Panel.cs
- Intellisense.cs
- NumberFunctions.cs
- SupportsEventValidationAttribute.cs
- XmlSortKey.cs
- TextDpi.cs
- DataContractSerializerSection.cs
- XmlWhitespace.cs
- XmlValueConverter.cs
- DataMember.cs
- XmlSchemaIdentityConstraint.cs
- DataGridViewRowCancelEventArgs.cs
- DelayedRegex.cs
- SspiSafeHandles.cs
- CollectionsUtil.cs
- FastEncoder.cs
- FreezableOperations.cs
- FixedSOMTable.cs
- PrintingPermission.cs
- DataGridSortCommandEventArgs.cs
- SQLBytes.cs
- ImageIndexEditor.cs
- HttpRuntimeSection.cs
- XmlUtf8RawTextWriter.cs
- RetrieveVirtualItemEventArgs.cs
- X509CertificateStore.cs
- DataServiceConfiguration.cs
- DateTimeConstantAttribute.cs
- DataSourceHelper.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CookielessHelper.cs
- ConfigXmlDocument.cs
- AdjustableArrowCap.cs
- SqlNode.cs
- Subtree.cs
- DataServiceStreamResponse.cs
- ActivityDesigner.cs
- CodeAccessSecurityEngine.cs
- QueryBranchOp.cs
- TextRange.cs
- SystemUnicastIPAddressInformation.cs
- ContractNamespaceAttribute.cs
- DefaultDiscoveryService.cs
- ProjectedSlot.cs
- ThreadStateException.cs
- AsymmetricSecurityProtocol.cs
- DateTimeParse.cs
- AutomationElementCollection.cs
- SystemThemeKey.cs
- Point3DAnimation.cs
- LogWriteRestartAreaAsyncResult.cs
- DataBinder.cs
- EntityPropertyMappingAttribute.cs
- ArgumentDesigner.xaml.cs
- FormatException.cs
- TemplateBamlTreeBuilder.cs
- Mouse.cs
- XmlDataImplementation.cs
- DiffuseMaterial.cs
- ObjectViewQueryResultData.cs
- ItemChangedEventArgs.cs
- BamlRecordWriter.cs
- WizardForm.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- WorkflowStateRollbackService.cs
- DataGridViewCellConverter.cs
- CheckBoxStandardAdapter.cs
- GlobalAllocSafeHandle.cs
- Dispatcher.cs
- MenuBase.cs
- WebPartTracker.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- CursorConverter.cs
- TcpConnectionPoolSettings.cs
- FormsAuthenticationUserCollection.cs
- CodeDOMProvider.cs
- OrElse.cs
- QueryInterceptorAttribute.cs
- WmiInstallComponent.cs
- CodeIterationStatement.cs
- TransformGroup.cs
- SimpleApplicationHost.cs
- StylusButton.cs
- OracleEncoding.cs
- EmbeddedMailObjectsCollection.cs
- WebPartTransformer.cs
- MsmqIntegrationElement.cs
- SafeNativeMethods.cs
- FontSource.cs
- SqlLiftWhereClauses.cs
- securitycriticaldataformultiplegetandset.cs
- CaseExpr.cs
- DataViewSettingCollection.cs
- XmlnsDictionary.cs
- SqlStatistics.cs
- DesignerHelpers.cs
- XamlPoint3DCollectionSerializer.cs
- ResourcePermissionBaseEntry.cs
- EntityKeyElement.cs