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
- Stylus.cs
- BindingSourceDesigner.cs
- XmlWrappingWriter.cs
- ScriptingWebServicesSectionGroup.cs
- Int32Converter.cs
- MdiWindowListStrip.cs
- StyleCollection.cs
- SmiMetaDataProperty.cs
- ComAdminInterfaces.cs
- Resources.Designer.cs
- UserPreferenceChangedEventArgs.cs
- ItemContainerPattern.cs
- DeclarationUpdate.cs
- ObjectIDGenerator.cs
- HtmlElementErrorEventArgs.cs
- TextUtf8RawTextWriter.cs
- ObjectStateEntry.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AppDomainUnloadedException.cs
- StreamUpdate.cs
- SQLInt32.cs
- HostDesigntimeLicenseContext.cs
- WMIInterop.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- NonValidatingSecurityTokenAuthenticator.cs
- XmlHierarchicalEnumerable.cs
- PageEventArgs.cs
- NullReferenceException.cs
- DesignTimeTemplateParser.cs
- DropShadowBitmapEffect.cs
- AutoResizedEvent.cs
- CodeCommentStatementCollection.cs
- SqlWebEventProvider.cs
- GregorianCalendarHelper.cs
- SendMailErrorEventArgs.cs
- BinaryFormatter.cs
- ColorTransformHelper.cs
- TextTreeDeleteContentUndoUnit.cs
- Splitter.cs
- EmptyEnumerable.cs
- HtmlTableCell.cs
- DependsOnAttribute.cs
- BaseAddressPrefixFilterElementCollection.cs
- MenuEventArgs.cs
- Parser.cs
- webeventbuffer.cs
- ParserContext.cs
- ImpersonateTokenRef.cs
- InvalidPropValue.cs
- ProfilePropertySettingsCollection.cs
- ConfigUtil.cs
- HttpListenerResponse.cs
- ElementHostPropertyMap.cs
- VersionedStream.cs
- NullableIntMinMaxAggregationOperator.cs
- Adorner.cs
- CommandCollectionEditor.cs
- ActiveDocumentEvent.cs
- SafeFreeMibTable.cs
- ListView.cs
- Link.cs
- PointAnimation.cs
- SmtpTransport.cs
- MetaTable.cs
- DurableRuntimeValidator.cs
- SystemInfo.cs
- IndexOutOfRangeException.cs
- CollectionsUtil.cs
- Rect.cs
- ConfigurationSectionGroupCollection.cs
- SoapConverter.cs
- SqlDependency.cs
- StylusPlugInCollection.cs
- SerialErrors.cs
- ReadContentAsBinaryHelper.cs
- DataQuery.cs
- SignatureDescription.cs
- TypeToken.cs
- CodeExporter.cs
- DbConnectionStringCommon.cs
- SizeAnimation.cs
- RectangleHotSpot.cs
- RepeaterDataBoundAdapter.cs
- Storyboard.cs
- GCHandleCookieTable.cs
- FloaterBaseParaClient.cs
- HtmlProps.cs
- COAUTHINFO.cs
- ThicknessAnimation.cs
- BulletChrome.cs
- HttpCacheVary.cs
- UrlMapping.cs
- BuildProvider.cs
- CustomCredentialPolicy.cs
- PrinterSettings.cs
- AlternationConverter.cs
- Point4DConverter.cs
- _LocalDataStore.cs
- ConnectionsZoneAutoFormat.cs
- SetState.cs