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
- ExpressionBindingCollection.cs
- IDQuery.cs
- Win32.cs
- Pair.cs
- ScrollItemProviderWrapper.cs
- SponsorHelper.cs
- PowerStatus.cs
- ScriptReferenceEventArgs.cs
- FixedDocumentSequencePaginator.cs
- Variant.cs
- TreeIterators.cs
- MultipleViewPatternIdentifiers.cs
- SoapAttributeOverrides.cs
- TraceLog.cs
- CommandEventArgs.cs
- CodeTypeParameterCollection.cs
- TripleDES.cs
- WmfPlaceableFileHeader.cs
- AssemblyCollection.cs
- XmlLanguageConverter.cs
- RpcResponse.cs
- TextTreeNode.cs
- RenderData.cs
- LogicalMethodInfo.cs
- AssemblyLoader.cs
- AttributeCollection.cs
- sortedlist.cs
- DrawingContextDrawingContextWalker.cs
- ValueChangedEventManager.cs
- PTProvider.cs
- LocationSectionRecord.cs
- DrawingContextWalker.cs
- RTLAwareMessageBox.cs
- FakeModelPropertyImpl.cs
- COM2ColorConverter.cs
- HttpProfileGroupBase.cs
- AttributeProviderAttribute.cs
- ellipse.cs
- CompilationUnit.cs
- TypeInfo.cs
- AuthenticatedStream.cs
- KeyValueConfigurationCollection.cs
- DetailsViewRowCollection.cs
- AssemblyBuilderData.cs
- DmlSqlGenerator.cs
- TypeContext.cs
- ObjectResult.cs
- FormatterConverter.cs
- ListViewInsertionMark.cs
- RuleConditionDialog.Designer.cs
- ImageAnimator.cs
- SymDocumentType.cs
- PhonemeConverter.cs
- AsyncSerializedWorker.cs
- HtmlMeta.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- MetadataPropertyAttribute.cs
- FrameworkContextData.cs
- VarInfo.cs
- GB18030Encoding.cs
- SafeWaitHandle.cs
- EventHandlersStore.cs
- BooleanAnimationUsingKeyFrames.cs
- BufferModesCollection.cs
- TraceContextRecord.cs
- Int32Converter.cs
- BlurBitmapEffect.cs
- LogSwitch.cs
- DocumentEventArgs.cs
- GregorianCalendar.cs
- RegistryDataKey.cs
- BatchParser.cs
- odbcmetadatafactory.cs
- LogWriteRestartAreaAsyncResult.cs
- Privilege.cs
- Barrier.cs
- PointAnimationClockResource.cs
- Module.cs
- MaskedTextBoxTextEditor.cs
- TextSelection.cs
- OutputScopeManager.cs
- ImmComposition.cs
- QueryResult.cs
- PostBackOptions.cs
- DmlSqlGenerator.cs
- IInstanceTable.cs
- PersistChildrenAttribute.cs
- XmlSchemaFacet.cs
- KnownTypesProvider.cs
- DateTimeConverter.cs
- SqlCaseSimplifier.cs
- EncoderExceptionFallback.cs
- isolationinterop.cs
- DataServiceSaveChangesEventArgs.cs
- ConsoleTraceListener.cs
- WindowsIdentity.cs
- Activator.cs
- GeneralTransform3DTo2DTo3D.cs
- SelectionChangedEventArgs.cs
- XmlSerializerSection.cs