Code:
/ DotNET / DotNET / 8.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
- BehaviorEditorPart.cs
- TextParagraph.cs
- NamespaceCollection.cs
- MessageBox.cs
- Oid.cs
- OleDragDropHandler.cs
- AuthenticateEventArgs.cs
- ObjectItemLoadingSessionData.cs
- SoapTypeAttribute.cs
- CalendarDateRange.cs
- KeyFrames.cs
- ProfileEventArgs.cs
- DbSetClause.cs
- IndicCharClassifier.cs
- SapiGrammar.cs
- UriParserTemplates.cs
- PrefixQName.cs
- GridSplitter.cs
- Int64Animation.cs
- SlipBehavior.cs
- EntityViewContainer.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Ops.cs
- WindowsUpDown.cs
- StorageEndPropertyMapping.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TemplateControlCodeDomTreeGenerator.cs
- EditBehavior.cs
- MetricEntry.cs
- WebPartConnectionsCancelVerb.cs
- RegexCaptureCollection.cs
- RowType.cs
- ClientScriptManagerWrapper.cs
- RowBinding.cs
- EntityProviderServices.cs
- ToolstripProfessionalRenderer.cs
- MarginsConverter.cs
- FontNamesConverter.cs
- FigureHelper.cs
- ClientTarget.cs
- WebBrowserPermission.cs
- WindowVisualStateTracker.cs
- ObjectStateFormatter.cs
- MessageFilterException.cs
- PropertyToken.cs
- PasswordRecoveryAutoFormat.cs
- HttpWebResponse.cs
- SettingsBindableAttribute.cs
- DispatcherObject.cs
- CompilerScope.Storage.cs
- ResourcePermissionBase.cs
- Repeater.cs
- BitmapCodecInfoInternal.cs
- ThreadStaticAttribute.cs
- Msec.cs
- LookupBindingPropertiesAttribute.cs
- SqlErrorCollection.cs
- HandlerBase.cs
- BamlWriter.cs
- SimpleHandlerBuildProvider.cs
- ApplicationSettingsBase.cs
- TextCompositionManager.cs
- NamespaceCollection.cs
- StringFunctions.cs
- Latin1Encoding.cs
- AdditionalEntityFunctions.cs
- autovalidator.cs
- SelectionRange.cs
- SchemaHelper.cs
- DataBindingExpressionBuilder.cs
- HostSecurityManager.cs
- ModulesEntry.cs
- InfoCardAsymmetricCrypto.cs
- SourceFileBuildProvider.cs
- XmlBinaryWriter.cs
- XamlBrushSerializer.cs
- DetailsView.cs
- SettingsBindableAttribute.cs
- ApplicationCommands.cs
- ModelProperty.cs
- Cursor.cs
- EntityCommandCompilationException.cs
- AvtEvent.cs
- MissingSatelliteAssemblyException.cs
- SettingsContext.cs
- SQLMoney.cs
- AVElementHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- SafeRegistryHandle.cs
- InfoCardProofToken.cs
- HtmlElementCollection.cs
- CategoryAttribute.cs
- HttpServerUtilityWrapper.cs
- BamlBinaryWriter.cs
- TextServicesCompartment.cs
- MissingMethodException.cs
- EventItfInfo.cs
- HashRepartitionStream.cs
- _DigestClient.cs