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 / WebPartExportVerb.cs / 1 / WebPartExportVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartExportVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartExportVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartExportVerb_Text); } return _defaultText; } } // 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.WebPartExportVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartExportVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (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 WebPartExportVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartExportVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartExportVerb_Text); } return _defaultText; } } // 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.WebPartExportVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartExportVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (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
- InputLanguageCollection.cs
- Base64Encoder.cs
- SimpleTypeResolver.cs
- FontCollection.cs
- WindowsSspiNegotiation.cs
- RightsManagementEncryptedStream.cs
- ThumbButtonInfoCollection.cs
- SystemInfo.cs
- TimeSpanStorage.cs
- ComponentCommands.cs
- ColorConverter.cs
- EntityTypeEmitter.cs
- CodeExporter.cs
- EventMap.cs
- GregorianCalendar.cs
- SafeNativeMethods.cs
- PolicyStatement.cs
- TreeNodeEventArgs.cs
- SqlInternalConnection.cs
- ScriptingProfileServiceSection.cs
- MethodBuilder.cs
- namescope.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- Events.cs
- LineInfo.cs
- Stream.cs
- Rules.cs
- MenuBindingsEditorForm.cs
- WebPartConnectionsCloseVerb.cs
- DataGrid.cs
- TreeNodeStyleCollection.cs
- WebBrowsableAttribute.cs
- NavigatorInput.cs
- PtsHost.cs
- HostingPreferredMapPath.cs
- mediaeventshelper.cs
- SqlProfileProvider.cs
- UIPermission.cs
- WS2007HttpBindingCollectionElement.cs
- PropertyTabChangedEvent.cs
- XamlInt32CollectionSerializer.cs
- InputDevice.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TypeInitializationException.cs
- RegexCaptureCollection.cs
- ZipPackagePart.cs
- ErrorHandlerModule.cs
- FocusWithinProperty.cs
- ConnectionPoint.cs
- WindowsFormsHelpers.cs
- PnrpPermission.cs
- ListSourceHelper.cs
- UseAttributeSetsAction.cs
- EntitySetDataBindingList.cs
- SerialPinChanges.cs
- EngineSite.cs
- XmlSchemaAnnotated.cs
- XmlCharCheckingReader.cs
- MemberAssignment.cs
- QueryInterceptorAttribute.cs
- ResourceIDHelper.cs
- MailAddressCollection.cs
- ScriptComponentDescriptor.cs
- Script.cs
- PointAnimationUsingKeyFrames.cs
- Site.cs
- InputScope.cs
- Matrix.cs
- SkipStoryboardToFill.cs
- SignatureGenerator.cs
- MessageQueueTransaction.cs
- BindableAttribute.cs
- SpecialFolderEnumConverter.cs
- MILUtilities.cs
- _ConnectStream.cs
- IntSecurity.cs
- PlatformCulture.cs
- RelatedEnd.cs
- KeyTime.cs
- PtsHelper.cs
- QueryInterceptorAttribute.cs
- TemplateBamlRecordReader.cs
- updateconfighost.cs
- LZCodec.cs
- DefaultClaimSet.cs
- ItemsChangedEventArgs.cs
- AppDomainAttributes.cs
- BaseEntityWrapper.cs
- ipaddressinformationcollection.cs
- LinqDataSourceDisposeEventArgs.cs
- CaseExpr.cs
- OptimizerPatterns.cs
- SplitterEvent.cs
- FrugalList.cs
- COM2PropertyBuilderUITypeEditor.cs
- webproxy.cs
- SqlError.cs
- Animatable.cs
- activationcontext.cs
- PropertySegmentSerializer.cs