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
- XmlILConstructAnalyzer.cs
- ColumnHeader.cs
- UInt32Storage.cs
- IDReferencePropertyAttribute.cs
- ZipIOLocalFileBlock.cs
- ActiveXContainer.cs
- PersistStreamTypeWrapper.cs
- UxThemeWrapper.cs
- HttpContext.cs
- SystemIPv4InterfaceProperties.cs
- _Win32.cs
- TypedReference.cs
- ConcurrentDictionary.cs
- TraceListener.cs
- DataTableMappingCollection.cs
- ComNativeDescriptor.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- Schema.cs
- PathFigure.cs
- TextEditorMouse.cs
- Array.cs
- BitStream.cs
- ISFTagAndGuidCache.cs
- Error.cs
- MessageAction.cs
- TreeNode.cs
- Merger.cs
- DataControlReference.cs
- NativeConfigurationLoader.cs
- RefreshPropertiesAttribute.cs
- ConfigurationHelpers.cs
- CharAnimationBase.cs
- NetTcpBinding.cs
- ScrollData.cs
- SslStream.cs
- EntitySqlQueryState.cs
- RulePatternOps.cs
- BufferedGraphics.cs
- CollaborationHelperFunctions.cs
- StatusInfoItem.cs
- DataGridViewColumnTypeEditor.cs
- GenericRootAutomationPeer.cs
- SuppressMessageAttribute.cs
- AuthenticationModuleElement.cs
- ParsedAttributeCollection.cs
- WinCategoryAttribute.cs
- returneventsaver.cs
- MetaType.cs
- SamlAudienceRestrictionCondition.cs
- Debug.cs
- ActiveDocumentEvent.cs
- ImageCreator.cs
- PngBitmapDecoder.cs
- RegexReplacement.cs
- BackStopAuthenticationModule.cs
- CompilerHelpers.cs
- AnimationClock.cs
- TextEditorMouse.cs
- ControlBuilderAttribute.cs
- Rotation3D.cs
- ListItemDetailViewAttribute.cs
- _LocalDataStoreMgr.cs
- AuthenticateEventArgs.cs
- PipelineModuleStepContainer.cs
- PropertyValueUIItem.cs
- RIPEMD160.cs
- ListBoxItemWrapperAutomationPeer.cs
- RepeaterItemCollection.cs
- TypefaceMetricsCache.cs
- PaperSize.cs
- FlowDocumentScrollViewer.cs
- _LazyAsyncResult.cs
- Win32.cs
- EditorZone.cs
- DataObjectFieldAttribute.cs
- Ppl.cs
- Rfc2898DeriveBytes.cs
- FrameworkRichTextComposition.cs
- Point3DConverter.cs
- DmlSqlGenerator.cs
- ApplyTemplatesAction.cs
- TreeNodeStyleCollection.cs
- SortQuery.cs
- HyperLinkColumn.cs
- MultiSelector.cs
- VisualStyleInformation.cs
- DetailsViewRowCollection.cs
- NativeMethods.cs
- StyleCollection.cs
- NullableBoolConverter.cs
- XmlAttributeAttribute.cs
- NamedPipeTransportSecurityElement.cs
- HiddenFieldPageStatePersister.cs
- DtdParser.cs
- ProcessStartInfo.cs
- DataGridViewDataConnection.cs
- FixedTextBuilder.cs
- InstalledFontCollection.cs
- StringReader.cs
- EventListener.cs