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
- GridViewCancelEditEventArgs.cs
- MobileContainerDesigner.cs
- IsolatedStorage.cs
- DateTimeConstantAttribute.cs
- TranslateTransform3D.cs
- ButtonField.cs
- ExpressionBuilder.cs
- RectConverter.cs
- MaterialCollection.cs
- AnonymousIdentificationSection.cs
- GenericEnumConverter.cs
- GridViewCancelEditEventArgs.cs
- SystemFonts.cs
- ValueProviderWrapper.cs
- EventManager.cs
- FixedSchema.cs
- SchemaEntity.cs
- SQLInt16.cs
- _AutoWebProxyScriptHelper.cs
- SchemaMapping.cs
- AutomationPropertyInfo.cs
- ThumbButtonInfoCollection.cs
- ScalarOps.cs
- SecurityHelper.cs
- SymbolDocumentGenerator.cs
- Single.cs
- EraserBehavior.cs
- DataRowView.cs
- BaseDataListActionList.cs
- ChannelServices.cs
- EventSourceCreationData.cs
- ActivityPreviewDesigner.cs
- Bits.cs
- TypeConverters.cs
- SecureEnvironment.cs
- SqlExpander.cs
- HitTestDrawingContextWalker.cs
- DefaultTraceListener.cs
- TextRunCacheImp.cs
- TemplateKeyConverter.cs
- CombinedGeometry.cs
- DebugHandleTracker.cs
- ConfigXmlWhitespace.cs
- ColorDialog.cs
- EntityParameterCollection.cs
- XmlBufferReader.cs
- SourceElementsCollection.cs
- CssClassPropertyAttribute.cs
- ApplicationContext.cs
- X509Chain.cs
- FillRuleValidation.cs
- OpCopier.cs
- HtmlTableCell.cs
- SRDisplayNameAttribute.cs
- QuaternionKeyFrameCollection.cs
- ColorConvertedBitmapExtension.cs
- SecurityIdentifierConverter.cs
- ProfilePropertySettings.cs
- AuthorizationSection.cs
- ObjectNotFoundException.cs
- Table.cs
- BitmapSource.cs
- FieldAccessException.cs
- EmptyEnumerator.cs
- ClassGenerator.cs
- DoubleKeyFrameCollection.cs
- NetNamedPipeBindingCollectionElement.cs
- FontStyleConverter.cs
- XmlILTrace.cs
- StringValidatorAttribute.cs
- SqlConnectionManager.cs
- PackWebRequestFactory.cs
- PageSetupDialog.cs
- filewebresponse.cs
- DataRecordInternal.cs
- LocatorPartList.cs
- Underline.cs
- Aggregates.cs
- PhysicalAddress.cs
- ModelItemCollection.cs
- DataBoundLiteralControl.cs
- ObjectTokenCategory.cs
- AuthenticatedStream.cs
- Expander.cs
- ResourceExpression.cs
- ECDiffieHellmanCngPublicKey.cs
- ArgumentFixer.cs
- KernelTypeValidation.cs
- NamespaceCollection.cs
- Span.cs
- RecordConverter.cs
- LambdaCompiler.Unary.cs
- RowToParametersTransformer.cs
- TabControl.cs
- ColorIndependentAnimationStorage.cs
- Model3D.cs
- TextParaClient.cs
- Attachment.cs
- FrameworkContentElement.cs
- UserControl.cs