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
- TypeInfo.cs
- Schema.cs
- DeflateEmulationStream.cs
- SqlAliaser.cs
- HashCodeCombiner.cs
- RegexWriter.cs
- BaseDataListComponentEditor.cs
- COM2PictureConverter.cs
- ObjectStateFormatter.cs
- RequestNavigateEventArgs.cs
- ImageAttributes.cs
- UInt32.cs
- GraphicsContainer.cs
- Publisher.cs
- Variant.cs
- MdImport.cs
- TableStyle.cs
- QueryOutputWriter.cs
- TransformDescriptor.cs
- ToolStrip.cs
- OdbcConnectionString.cs
- ProcessHostMapPath.cs
- CompilationPass2Task.cs
- XmlSchemaSimpleTypeList.cs
- XsltException.cs
- CountdownEvent.cs
- DataContractSerializerElement.cs
- ConnectionPoint.cs
- ObjectSet.cs
- AuthenticationException.cs
- BamlLocalizabilityResolver.cs
- SmiTypedGetterSetter.cs
- ParserStreamGeometryContext.cs
- SmiGettersStream.cs
- TimeSpanSecondsConverter.cs
- EpmSourcePathSegment.cs
- ControlType.cs
- ScrollPatternIdentifiers.cs
- ListComponentEditorPage.cs
- CollectionView.cs
- AttachedAnnotationChangedEventArgs.cs
- NetworkInformationException.cs
- DataObject.cs
- DiagnosticsConfigurationHandler.cs
- UnSafeCharBuffer.cs
- DelegatedStream.cs
- SqlError.cs
- User.cs
- COM2FontConverter.cs
- ApplicationManager.cs
- UniqueEventHelper.cs
- ByteAnimationBase.cs
- SpnegoTokenAuthenticator.cs
- SqlVersion.cs
- XPathSelectionIterator.cs
- SwitchElementsCollection.cs
- ListViewPagedDataSource.cs
- IndexerReference.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ContainerControl.cs
- ObjectSpanRewriter.cs
- SignedXml.cs
- AssertFilter.cs
- AsyncCompletedEventArgs.cs
- SecurityResources.cs
- _NegotiateClient.cs
- ShadowGlyph.cs
- MimeAnyImporter.cs
- SqlWebEventProvider.cs
- Point3DConverter.cs
- RelatedCurrencyManager.cs
- ObjectAssociationEndMapping.cs
- FormViewUpdateEventArgs.cs
- Zone.cs
- ComponentResourceManager.cs
- SettingsPropertyValueCollection.cs
- WebScriptEnablingBehavior.cs
- BuildProviderAppliesToAttribute.cs
- FixedSOMTableCell.cs
- SEHException.cs
- XmlName.cs
- TemplatePartAttribute.cs
- BitmapImage.cs
- ConnectivityStatus.cs
- ComponentCache.cs
- HandleInitializationContext.cs
- DataBoundControlAdapter.cs
- StylusPlugin.cs
- CurrencyWrapper.cs
- WindowsClaimSet.cs
- SqlXmlStorage.cs
- HtmlToClrEventProxy.cs
- FontInfo.cs
- MimeTypePropertyAttribute.cs
- SecurityException.cs
- TimeSpanFormat.cs
- DayRenderEvent.cs
- BamlTreeMap.cs
- TextHidden.cs
- ComponentChangingEvent.cs