Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / TargetConverter.cs / 1305376 / TargetConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.ComponentModel; using System.Globalization; using System.Reflection; ////// public class TargetConverter: StringConverter { private static string [] targetValues = { "_blank", "_parent", "_search", "_self", "_top" }; private StandardValuesCollection values; ////// /// public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { if (values == null) { values = new StandardValuesCollection(targetValues); } return values; } ////// /// public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { return false; } ////// /// public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.ComponentModel; using System.Globalization; using System.Reflection; ////// public class TargetConverter: StringConverter { private static string [] targetValues = { "_blank", "_parent", "_search", "_self", "_top" }; private StandardValuesCollection values; ////// /// public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { if (values == null) { values = new StandardValuesCollection(targetValues); } return values; } ////// /// public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { return false; } ////// /// public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } } } // 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
- CacheAxisQuery.cs
- ScriptControlManager.cs
- MembershipSection.cs
- Encoder.cs
- CommonDialog.cs
- QualifierSet.cs
- XPathAncestorQuery.cs
- EntityContainerEntitySetDefiningQuery.cs
- WebConfigurationHostFileChange.cs
- HttpValueCollection.cs
- WindowsTooltip.cs
- DiscoveryClientOutputChannel.cs
- TableRowCollection.cs
- AppSettingsExpressionBuilder.cs
- NonBatchDirectoryCompiler.cs
- LoginName.cs
- IndexerNameAttribute.cs
- TimeZone.cs
- UpdateManifestForBrowserApplication.cs
- IndexOutOfRangeException.cs
- RenameRuleObjectDialog.cs
- X509ChainElement.cs
- KeyedCollection.cs
- MachineKeyValidationConverter.cs
- COMException.cs
- StdValidatorsAndConverters.cs
- Brushes.cs
- WebEventCodes.cs
- PenThread.cs
- PropertyRef.cs
- PointAnimation.cs
- XPathQueryGenerator.cs
- BasicHttpBindingCollectionElement.cs
- CodeTypeDeclarationCollection.cs
- ChannelManager.cs
- StackBuilderSink.cs
- RtfFormatStack.cs
- HtmlPanelAdapter.cs
- DataGridViewSelectedCellCollection.cs
- GridLengthConverter.cs
- ReadOnlyMetadataCollection.cs
- WebServiceTypeData.cs
- WorkflowPageSetupDialog.cs
- Permission.cs
- DataGridRelationshipRow.cs
- OperatingSystem.cs
- ScalarOps.cs
- CounterCreationData.cs
- XmlEntity.cs
- XmlSchemaObjectCollection.cs
- MarkupWriter.cs
- WebBaseEventKeyComparer.cs
- ColorBuilder.cs
- ExtensionSimplifierMarkupObject.cs
- SoapMessage.cs
- PeerHelpers.cs
- SqlCommand.cs
- TextSpanModifier.cs
- BeginCreateSecurityTokenRequest.cs
- Asn1IntegerConverter.cs
- PageVisual.cs
- DataBinding.cs
- ValueConversionAttribute.cs
- FreeFormDesigner.cs
- ImageClickEventArgs.cs
- OrderablePartitioner.cs
- BamlLocalizationDictionary.cs
- GridViewColumnCollection.cs
- BitmapEffectCollection.cs
- ColorAnimation.cs
- IdentifierService.cs
- DesignerSerializationVisibilityAttribute.cs
- InputBinding.cs
- MaskDescriptor.cs
- DetailsViewRowCollection.cs
- PropertyDescriptor.cs
- xmlglyphRunInfo.cs
- datacache.cs
- QueryFunctions.cs
- EntitySet.cs
- UmAlQuraCalendar.cs
- SystemWebCachingSectionGroup.cs
- URIFormatException.cs
- XmlSchemaDatatype.cs
- SingleAnimation.cs
- cookieexception.cs
- TemplateControlBuildProvider.cs
- EntityDataSourceValidationException.cs
- XmlAttributeOverrides.cs
- PostBackTrigger.cs
- ParentQuery.cs
- InfocardClientCredentials.cs
- LazyTextWriterCreator.cs
- CommandValueSerializer.cs
- ListCollectionView.cs
- SBCSCodePageEncoding.cs
- DataGridViewCellStyleConverter.cs
- IsolationInterop.cs
- UIElementIsland.cs
- ToolboxComponentsCreatedEventArgs.cs