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
- SapiRecoContext.cs
- HtmlLinkAdapter.cs
- FrameworkElement.cs
- LabelLiteral.cs
- XmlAtomicValue.cs
- Color.cs
- LightweightCodeGenerator.cs
- InvalidProgramException.cs
- ConsoleEntryPoint.cs
- MappingModelBuildProvider.cs
- SQLResource.cs
- WhitespaceRuleLookup.cs
- RealProxy.cs
- TextParagraphProperties.cs
- ISAPIRuntime.cs
- TryExpression.cs
- ConfigurationStrings.cs
- DateRangeEvent.cs
- OleTxTransactionInfo.cs
- FloatAverageAggregationOperator.cs
- NumberFunctions.cs
- IDataContractSurrogate.cs
- _OverlappedAsyncResult.cs
- ButtonFieldBase.cs
- WhitespaceRule.cs
- FixedTextContainer.cs
- SplitContainer.cs
- HwndHost.cs
- VisualBasicHelper.cs
- _ShellExpression.cs
- ConfigXmlDocument.cs
- NodeLabelEditEvent.cs
- TraceLevelStore.cs
- UriSectionReader.cs
- ChooseAction.cs
- CodeDomLoader.cs
- ServiceDescriptionReflector.cs
- AlternationConverter.cs
- MaterializeFromAtom.cs
- DashStyles.cs
- ConfigurationElementCollection.cs
- HTTPRemotingHandler.cs
- RuleElement.cs
- TextDecoration.cs
- RectAnimationClockResource.cs
- MessageDispatch.cs
- StringCollection.cs
- TokenBasedSet.cs
- SuppressedPackageProperties.cs
- HighContrastHelper.cs
- TypedTableBaseExtensions.cs
- TypeToArgumentTypeConverter.cs
- MouseEvent.cs
- XmlBinaryReader.cs
- ListSourceHelper.cs
- InputLanguageEventArgs.cs
- BitmapEffect.cs
- counter.cs
- Selection.cs
- HttpCookie.cs
- CodeVariableReferenceExpression.cs
- PenThreadPool.cs
- DocumentPageHost.cs
- TypeSystem.cs
- StoreContentChangedEventArgs.cs
- cookiecontainer.cs
- BooleanFacetDescriptionElement.cs
- StandardToolWindows.cs
- WebPartEditVerb.cs
- DataSetUtil.cs
- _RequestCacheProtocol.cs
- TextReturnReader.cs
- RestClientProxyHandler.cs
- CompositionAdorner.cs
- EndSelectCardRequest.cs
- HiddenFieldPageStatePersister.cs
- Int64Animation.cs
- Region.cs
- IntSecurity.cs
- Stack.cs
- PropertyRecord.cs
- InstancePersistenceCommandException.cs
- DnsPermission.cs
- CharacterBufferReference.cs
- EventLogException.cs
- SafeProcessHandle.cs
- HttpFileCollectionWrapper.cs
- XmlILOptimizerVisitor.cs
- SoapReflector.cs
- ConnectionManagementSection.cs
- IConvertible.cs
- WebHeaderCollection.cs
- SqlFacetAttribute.cs
- IndexedEnumerable.cs
- SqlRowUpdatedEvent.cs
- Label.cs
- OdbcException.cs
- SoapExtensionImporter.cs
- LabelLiteral.cs
- PersistenceTask.cs