Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / TargetConverter.cs / 1 / 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; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeStatementCollection.cs
- MediaSystem.cs
- FirewallWrapper.cs
- ObfuscationAttribute.cs
- PageFunction.cs
- ResourceExpressionBuilder.cs
- objectquery_tresulttype.cs
- DataFieldEditor.cs
- HtmlInputReset.cs
- AttachInfo.cs
- RequestCacheEntry.cs
- FormViewUpdateEventArgs.cs
- FontStyleConverter.cs
- DataColumnChangeEvent.cs
- DefaultBindingPropertyAttribute.cs
- DefaultValueTypeConverter.cs
- GeneralTransform3DTo2D.cs
- WindowsToolbarItemAsMenuItem.cs
- CriticalExceptions.cs
- Int64Storage.cs
- JsonMessageEncoderFactory.cs
- IndexerNameAttribute.cs
- Attributes.cs
- MemoryMappedViewAccessor.cs
- Emitter.cs
- PersonalizationStateInfoCollection.cs
- HTTPNotFoundHandler.cs
- XXXInfos.cs
- SplashScreen.cs
- RichTextBox.cs
- DataServiceProviderMethods.cs
- AnchorEditor.cs
- DataSvcMapFile.cs
- ImageCollectionCodeDomSerializer.cs
- MemberNameValidator.cs
- XmlDataDocument.cs
- AdPostCacheSubstitution.cs
- TextEffect.cs
- PointKeyFrameCollection.cs
- XmlAnyElementAttribute.cs
- CryptoKeySecurity.cs
- XmlMapping.cs
- X509CertificateTokenFactoryCredential.cs
- HyperLink.cs
- DesignerDataParameter.cs
- DataGridComponentEditor.cs
- MatrixConverter.cs
- HtmlFormWrapper.cs
- TraceContextEventArgs.cs
- HybridObjectCache.cs
- RelationshipDetailsCollection.cs
- DataSourceProvider.cs
- InProcStateClientManager.cs
- COM2Properties.cs
- Win32SafeHandles.cs
- SoapAttributeAttribute.cs
- UidPropertyAttribute.cs
- X509Certificate2Collection.cs
- DataListCommandEventArgs.cs
- SizeLimitedCache.cs
- StylusPointProperties.cs
- CatalogPart.cs
- TrueReadOnlyCollection.cs
- DiagnosticSection.cs
- MissingSatelliteAssemblyException.cs
- RegexMatchCollection.cs
- XmlSerializerAssemblyAttribute.cs
- ProvidersHelper.cs
- TableLayout.cs
- GenericAuthenticationEventArgs.cs
- _TransmitFileOverlappedAsyncResult.cs
- HttpUnhandledOperationInvoker.cs
- StatusBarPanelClickEvent.cs
- DeadLetterQueue.cs
- OverloadGroupAttribute.cs
- DirectoryObjectSecurity.cs
- ClientSideQueueItem.cs
- StandardBindingElement.cs
- SettingsPropertyWrongTypeException.cs
- Registry.cs
- XmlReader.cs
- TextServicesDisplayAttribute.cs
- ManifestResourceInfo.cs
- SizeChangedInfo.cs
- WebControlsSection.cs
- PeerInvitationResponse.cs
- SQLBinary.cs
- _AcceptOverlappedAsyncResult.cs
- DebugTraceHelper.cs
- WebBrowserPermission.cs
- ASCIIEncoding.cs
- UIElement.cs
- DebugView.cs
- ToolStripSettings.cs
- DataSetMappper.cs
- ControlValuePropertyAttribute.cs
- Binding.cs
- PassportPrincipal.cs
- UnmanagedMemoryStreamWrapper.cs
- ClipboardProcessor.cs