Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartCatalogAddVerb.cs / 1305376 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigXmlComment.cs
- AttributeData.cs
- SafeHandle.cs
- EpmContentDeSerializerBase.cs
- ObjectDataSourceFilteringEventArgs.cs
- Soap.cs
- Process.cs
- FixedFlowMap.cs
- FlowDocumentScrollViewer.cs
- DefaultPrintController.cs
- ComboBoxRenderer.cs
- HeaderedContentControl.cs
- VisualBasicSettingsHandler.cs
- XXXOnTypeBuilderInstantiation.cs
- ComponentResourceKey.cs
- Cursor.cs
- SemanticResolver.cs
- XmlSchemas.cs
- COM2ICategorizePropertiesHandler.cs
- ObjectPropertyMapping.cs
- HttpChannelHelper.cs
- DomNameTable.cs
- ContextMenu.cs
- BodyWriter.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- PermissionSet.cs
- SQLBytesStorage.cs
- Utils.cs
- FragmentQueryProcessor.cs
- ClientRoleProvider.cs
- DispatcherExceptionFilterEventArgs.cs
- DeclaredTypeValidatorAttribute.cs
- AbstractSvcMapFileLoader.cs
- ISAPIRuntime.cs
- CanonicalXml.cs
- bindurihelper.cs
- ObjectQuery_EntitySqlExtensions.cs
- DesignerWidgets.cs
- CollectionType.cs
- BaseParagraph.cs
- SqlBulkCopyColumnMappingCollection.cs
- ItemType.cs
- SerTrace.cs
- SymbolEqualComparer.cs
- WindowsFont.cs
- LoginNameDesigner.cs
- StatusStrip.cs
- _LocalDataStore.cs
- ConfigXmlComment.cs
- CodeExporter.cs
- UseLicense.cs
- EntityConnectionStringBuilderItem.cs
- mediaeventshelper.cs
- TableLayoutSettingsTypeConverter.cs
- DrawingCollection.cs
- Vector3DCollectionConverter.cs
- SQLBytesStorage.cs
- XamlTypeMapper.cs
- EncryptedPackageFilter.cs
- WorkflowInstanceRecord.cs
- TraversalRequest.cs
- CompareValidator.cs
- TemplateControlParser.cs
- SingleKeyFrameCollection.cs
- NavigationHelper.cs
- WebRequest.cs
- _LocalDataStoreMgr.cs
- DbParameterCollection.cs
- HttpRuntime.cs
- ManipulationDelta.cs
- EditorPartCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BatchStream.cs
- ErrorWrapper.cs
- HtmlInputImage.cs
- ToolStripGripRenderEventArgs.cs
- ContractMapping.cs
- AttachInfo.cs
- CompositeActivityTypeDescriptorProvider.cs
- ListenerElementsCollection.cs
- RegisteredArrayDeclaration.cs
- ScriptIgnoreAttribute.cs
- DispatcherProcessingDisabled.cs
- Utils.cs
- RegexNode.cs
- Point3DCollection.cs
- TextProviderWrapper.cs
- Wrapper.cs
- XmlSchemaSimpleTypeUnion.cs
- VarRefManager.cs
- SerializerProvider.cs
- Line.cs
- XmlSchemaExporter.cs
- AnnotationComponentChooser.cs
- DeliveryRequirementsAttribute.cs
- CodeCatchClause.cs
- JsonDataContract.cs
- Selection.cs
- Visual.cs
- TextAnchor.cs