Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartExportVerb.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceHandlerErrorFormatter.cs
- HashRepartitionStream.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- DynamicActionMessageFilter.cs
- UnaryNode.cs
- SetterBaseCollection.cs
- TreeView.cs
- TextProperties.cs
- TextDecoration.cs
- DataGridViewSelectedCellCollection.cs
- DispatcherBuilder.cs
- SafeFileHandle.cs
- EntityViewGenerationAttribute.cs
- SerializationInfo.cs
- InheritanceRules.cs
- DbConnectionStringCommon.cs
- TagNameToTypeMapper.cs
- OrderedDictionary.cs
- ConnectorEditor.cs
- CorrelationExtension.cs
- CodeStatementCollection.cs
- Point3DCollection.cs
- SQLInt64Storage.cs
- AppDomainProtocolHandler.cs
- ImageClickEventArgs.cs
- CmsInterop.cs
- SignedPkcs7.cs
- ValidationPropertyAttribute.cs
- CalendarKeyboardHelper.cs
- CompilerCollection.cs
- CalendarDayButton.cs
- StreamMarshaler.cs
- ConstructorExpr.cs
- DefaultSerializationProviderAttribute.cs
- FormViewUpdateEventArgs.cs
- ScrollEventArgs.cs
- ConcatQueryOperator.cs
- XamlInterfaces.cs
- ConnectorMovedEventArgs.cs
- SqlCacheDependencyDatabase.cs
- PolygonHotSpot.cs
- PropertyItemInternal.cs
- LayoutExceptionEventArgs.cs
- Base64Decoder.cs
- X509RawDataKeyIdentifierClause.cs
- Accessible.cs
- MetaChildrenColumn.cs
- _KerberosClient.cs
- TransformBlockRequest.cs
- RegexRunnerFactory.cs
- CodePropertyReferenceExpression.cs
- SimplePropertyEntry.cs
- BreakRecordTable.cs
- SqlRewriteScalarSubqueries.cs
- PasswordRecovery.cs
- SchemeSettingElement.cs
- BindingExpression.cs
- EdmSchemaAttribute.cs
- DisplayInformation.cs
- Merger.cs
- UnSafeCharBuffer.cs
- ToolStripItem.cs
- InvalidDataException.cs
- EdmScalarPropertyAttribute.cs
- KoreanLunisolarCalendar.cs
- IgnoreFlushAndCloseStream.cs
- CacheVirtualItemsEvent.cs
- XmlDeclaration.cs
- SHA384Managed.cs
- AdRotator.cs
- ListViewSelectEventArgs.cs
- ToolBarOverflowPanel.cs
- ItemAutomationPeer.cs
- Pen.cs
- DelegateSerializationHolder.cs
- UnsafeNativeMethods.cs
- InvariantComparer.cs
- TypeListConverter.cs
- XamlFigureLengthSerializer.cs
- Serializer.cs
- DiscreteKeyFrames.cs
- TableHeaderCell.cs
- TemplateControlCodeDomTreeGenerator.cs
- ContourSegment.cs
- Block.cs
- parserscommon.cs
- DbReferenceCollection.cs
- SecurityPolicySection.cs
- SizeConverter.cs
- RawStylusInputReport.cs
- HtmlInputButton.cs
- HwndProxyElementProvider.cs
- NavigationEventArgs.cs
- NameValueCollection.cs
- FontSizeConverter.cs
- EasingQuaternionKeyFrame.cs
- CodeCommentStatement.cs
- HeaderCollection.cs
- BamlRecords.cs
- CollectionConverter.cs