Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AbsoluteQuery.cs
- DispatchChannelSink.cs
- DbConnectionClosed.cs
- ContainerUIElement3D.cs
- CompositeActivityCodeGenerator.cs
- ScopelessEnumAttribute.cs
- PackageRelationshipCollection.cs
- FilterQueryOptionExpression.cs
- CodeLabeledStatement.cs
- ConstraintStruct.cs
- Timeline.cs
- EventEntry.cs
- HandlerMappingMemo.cs
- DataGridTextBox.cs
- ValidationException.cs
- DetailsViewUpdatedEventArgs.cs
- OutputScopeManager.cs
- HandledMouseEvent.cs
- DesignerWithHeader.cs
- IBuiltInEvidence.cs
- CheckBoxList.cs
- ToolStripItemRenderEventArgs.cs
- SystemTcpConnection.cs
- FixedSOMImage.cs
- FaultContractInfo.cs
- XmlAnyElementAttributes.cs
- SymLanguageVendor.cs
- VisualStateGroup.cs
- BufferedReadStream.cs
- AudioDeviceOut.cs
- CopyCodeAction.cs
- PropertyChangeTracker.cs
- BulletedListEventArgs.cs
- BaseProcessor.cs
- Group.cs
- WorkflowMarkupSerializationException.cs
- CapabilitiesAssignment.cs
- FormattedTextSymbols.cs
- DesignerEventService.cs
- Lease.cs
- MarshalByRefObject.cs
- SqlDataSourceStatusEventArgs.cs
- ImageListStreamer.cs
- ExtentCqlBlock.cs
- IApplicationTrustManager.cs
- DesignerTransaction.cs
- DataGridViewCellLinkedList.cs
- Component.cs
- Inline.cs
- OdbcConnectionOpen.cs
- MembershipSection.cs
- DefaultEventAttribute.cs
- ChangeBlockUndoRecord.cs
- IntSecurity.cs
- safelink.cs
- HttpProfileBase.cs
- StaticTextPointer.cs
- MILUtilities.cs
- PersonalizationProviderHelper.cs
- SourceLineInfo.cs
- PropertyRef.cs
- RecordsAffectedEventArgs.cs
- PropertyRecord.cs
- invalidudtexception.cs
- TreeView.cs
- TypeNameConverter.cs
- Function.cs
- EmptyImpersonationContext.cs
- infer.cs
- XmlNotation.cs
- TextBoxLine.cs
- RankException.cs
- TypographyProperties.cs
- Decorator.cs
- DSACryptoServiceProvider.cs
- DataSpaceManager.cs
- SessionStateUtil.cs
- ErrorWebPart.cs
- GatewayDefinition.cs
- CodeLabeledStatement.cs
- StringInfo.cs
- XsltConvert.cs
- MenuItemAutomationPeer.cs
- ExtentKey.cs
- HebrewNumber.cs
- AttributeCallbackBuilder.cs
- DragEvent.cs
- IdentityReference.cs
- MetadataItem_Static.cs
- AuthorizationSection.cs
- Maps.cs
- EditorZoneAutoFormat.cs
- WsdlBuildProvider.cs
- TableLayoutSettingsTypeConverter.cs
- RegexReplacement.cs
- GuidConverter.cs
- TrackingCondition.cs
- PropertyChangingEventArgs.cs
- SignedXml.cs
- UICuesEvent.cs