Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Matrix3D.cs
- AttributeEmitter.cs
- XmlEventCache.cs
- Panel.cs
- Clause.cs
- MenuItem.cs
- PartitionResolver.cs
- dtdvalidator.cs
- ConfigXmlWhitespace.cs
- EntitySqlQueryCacheEntry.cs
- LoginDesigner.cs
- MenuItemCollection.cs
- FixedSOMImage.cs
- CanonicalFontFamilyReference.cs
- RawMouseInputReport.cs
- FlagsAttribute.cs
- FileClassifier.cs
- SqlConnectionFactory.cs
- EntityProxyFactory.cs
- DefaultAsyncDataDispatcher.cs
- TraceFilter.cs
- X509ChainPolicy.cs
- Underline.cs
- WindowsGraphics2.cs
- VSWCFServiceContractGenerator.cs
- ComboBoxRenderer.cs
- HtmlContainerControl.cs
- FileRecordSequence.cs
- SoapEnumAttribute.cs
- TextRangeAdaptor.cs
- DbCommandDefinition.cs
- TouchDevice.cs
- DataSetMappper.cs
- CompositionTarget.cs
- DocumentPageView.cs
- XmlSchemaAll.cs
- DesignerActionItem.cs
- RangeBase.cs
- UnitySerializationHolder.cs
- CompilerGeneratedAttribute.cs
- NameValuePermission.cs
- ChildDocumentBlock.cs
- ZipIOBlockManager.cs
- DocumentXPathNavigator.cs
- LoginDesignerUtil.cs
- MatrixTransform3D.cs
- HttpStaticObjectsCollectionWrapper.cs
- Globals.cs
- WindowsTooltip.cs
- ThemeableAttribute.cs
- NextPreviousPagerField.cs
- ClipboardData.cs
- SspiSafeHandles.cs
- TemplatePropertyEntry.cs
- QilUnary.cs
- UnsafePeerToPeerMethods.cs
- WhereQueryOperator.cs
- SafeEventHandle.cs
- GlobalProxySelection.cs
- TableCell.cs
- TimeSpanStorage.cs
- XmlSchemaInfo.cs
- LinearGradientBrush.cs
- XmlElementAttribute.cs
- CheckBoxList.cs
- MLangCodePageEncoding.cs
- CounterNameConverter.cs
- LinqDataSourceContextData.cs
- String.cs
- AsyncResult.cs
- TypeTypeConverter.cs
- FileDataSourceCache.cs
- DecimalAnimationUsingKeyFrames.cs
- AuthenticationServiceManager.cs
- ToolStripItemClickedEventArgs.cs
- WSSecurityPolicy11.cs
- MenuTracker.cs
- GACMembershipCondition.cs
- AnnotationHelper.cs
- ProcessThreadCollection.cs
- ProvidePropertyAttribute.cs
- CustomExpression.cs
- ScriptControlDescriptor.cs
- DataObjectMethodAttribute.cs
- HtmlTableRowCollection.cs
- XmlTextReaderImplHelpers.cs
- UIElement3DAutomationPeer.cs
- _IPv6Address.cs
- PropertyFilterAttribute.cs
- SecurityRequiresReviewAttribute.cs
- ComplexLine.cs
- SvcMapFileSerializer.cs
- SqlConnectionPoolProviderInfo.cs
- TypedReference.cs
- TemplateXamlTreeBuilder.cs
- ScrollableControl.cs
- CallId.cs
- ItemMap.cs
- InheritablePropertyChangeInfo.cs
- TouchesOverProperty.cs