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
- XmlSchemaProviderAttribute.cs
- ControlValuePropertyAttribute.cs
- FrameworkTemplate.cs
- GridItemCollection.cs
- PackUriHelper.cs
- SqlDataSourceCustomCommandPanel.cs
- EllipticalNodeOperations.cs
- HyperLinkStyle.cs
- DataGridTableCollection.cs
- XsltSettings.cs
- ComplexPropertyEntry.cs
- HtmlControlAdapter.cs
- LinqDataSourceValidationException.cs
- ExceptionNotification.cs
- WaitHandleCannotBeOpenedException.cs
- StrongNameSignatureInformation.cs
- DbModificationCommandTree.cs
- StrokeCollection.cs
- FormViewDeleteEventArgs.cs
- NameNode.cs
- ImmComposition.cs
- DeclarationUpdate.cs
- PaintEvent.cs
- COM2FontConverter.cs
- safemediahandle.cs
- RSAPKCS1SignatureFormatter.cs
- XPathNodePointer.cs
- Viewport2DVisual3D.cs
- UIElementPropertyUndoUnit.cs
- RefType.cs
- WebPartDisplayModeCollection.cs
- ArcSegment.cs
- X509SecurityTokenAuthenticator.cs
- HandlerMappingMemo.cs
- LostFocusEventManager.cs
- TableParaClient.cs
- XPathDocument.cs
- QilLiteral.cs
- GenericTextProperties.cs
- WebContext.cs
- WebServiceParameterData.cs
- InputMethodStateTypeInfo.cs
- CacheMemory.cs
- DataConnectionHelper.cs
- SmiEventSink_Default.cs
- RepeatButton.cs
- TimeSpanValidator.cs
- HeaderCollection.cs
- _NegotiateClient.cs
- DynamicValidator.cs
- WindowsListViewItem.cs
- RequiredFieldValidator.cs
- SymbolEqualComparer.cs
- WsatServiceAddress.cs
- ServerProtocol.cs
- MimeObjectFactory.cs
- ServerReliableChannelBinder.cs
- Container.cs
- DesignerActionItemCollection.cs
- DataTableMapping.cs
- ResourceExpression.cs
- WsdlBuildProvider.cs
- SqlDataSourceConfigureFilterForm.cs
- SendSecurityHeaderElement.cs
- XPathParser.cs
- SqlDataSourceCommandEventArgs.cs
- SocketManager.cs
- ServiceInstallComponent.cs
- Directory.cs
- Evaluator.cs
- ParameterCollection.cs
- Knowncolors.cs
- DataGridViewRowStateChangedEventArgs.cs
- RemoteCryptoDecryptRequest.cs
- HttpFileCollection.cs
- OperationParameterInfo.cs
- ResourceDisplayNameAttribute.cs
- SurrogateSelector.cs
- IdentityModelStringsVersion1.cs
- NameValueConfigurationElement.cs
- BindingExpressionUncommonField.cs
- SessionStateSection.cs
- AppearanceEditorPart.cs
- SelectionGlyph.cs
- CompoundFileIOPermission.cs
- ToolStripPanelRenderEventArgs.cs
- JoinElimination.cs
- MenuItem.cs
- TreeBuilder.cs
- ListViewItem.cs
- MouseDevice.cs
- DataGridHelper.cs
- ImportContext.cs
- ColorConverter.cs
- StoryFragments.cs
- Common.cs
- ReferencedAssembly.cs
- HtmlControlDesigner.cs
- CustomAssemblyResolver.cs
- _IPv6Address.cs