Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } // 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; 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; } } } // 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
- AuthenticationManager.cs
- FontConverter.cs
- ObjectTag.cs
- XMLSyntaxException.cs
- CircleHotSpot.cs
- BufferModeSettings.cs
- ViewLoader.cs
- EncoderExceptionFallback.cs
- AssemblyNameUtility.cs
- SQLDoubleStorage.cs
- RecordConverter.cs
- ListManagerBindingsCollection.cs
- QueryPageSettingsEventArgs.cs
- ExitEventArgs.cs
- CustomAttribute.cs
- SoundPlayerAction.cs
- AnnotationResourceCollection.cs
- XmlRawWriter.cs
- PathSegmentCollection.cs
- MethodCallConverter.cs
- RelationshipDetailsCollection.cs
- WebPartPersonalization.cs
- TableItemProviderWrapper.cs
- BlockCollection.cs
- ExceptionHandler.cs
- AsyncResult.cs
- GiveFeedbackEvent.cs
- Delay.cs
- SupportedAddressingMode.cs
- WebEvents.cs
- WindowsBrush.cs
- ToolStripCollectionEditor.cs
- CookieHandler.cs
- TimeZone.cs
- Repeater.cs
- WindowInteractionStateTracker.cs
- DataGridViewLinkColumn.cs
- TimelineClockCollection.cs
- _FixedSizeReader.cs
- EventInfo.cs
- MediaTimeline.cs
- FixedSOMSemanticBox.cs
- LogEntryHeaderDeserializer.cs
- ellipse.cs
- CharAnimationBase.cs
- CodeMethodReturnStatement.cs
- DataBinder.cs
- DiscoveryClientReferences.cs
- DiscoveryServiceExtension.cs
- CallbackValidatorAttribute.cs
- ScriptReference.cs
- IDispatchConstantAttribute.cs
- ChannelDispatcher.cs
- GroupDescription.cs
- WebBaseEventKeyComparer.cs
- ForAllOperator.cs
- XPathDocumentBuilder.cs
- CodeAttributeDeclaration.cs
- ZipIOBlockManager.cs
- DecoderNLS.cs
- SQLByte.cs
- WindowsComboBox.cs
- SessionEndingCancelEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- TagNameToTypeMapper.cs
- AppDomainManager.cs
- PointCollection.cs
- DictionaryEntry.cs
- PersonalizationProviderHelper.cs
- RelationshipEndMember.cs
- OutputCacheModule.cs
- UnsafeNativeMethodsCLR.cs
- Set.cs
- SafeSecurityHandles.cs
- TraceProvider.cs
- PaintEvent.cs
- HtmlDocument.cs
- Stream.cs
- RowToParametersTransformer.cs
- FastEncoderWindow.cs
- Operators.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- EmptyControlCollection.cs
- Opcode.cs
- MessagePropertyVariants.cs
- FontCacheUtil.cs
- PointF.cs
- IdentityModelStringsVersion1.cs
- _NestedMultipleAsyncResult.cs
- FlagsAttribute.cs
- LongAverageAggregationOperator.cs
- Boolean.cs
- BasicHttpSecurity.cs
- DataAdapter.cs
- ScriptResourceMapping.cs
- ConstrainedDataObject.cs
- RSACryptoServiceProvider.cs
- ConfigurationManagerHelper.cs
- TextViewDesigner.cs
- FileChangesMonitor.cs