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
- FlowDocumentFormatter.cs
- HtmlTableCell.cs
- Emitter.cs
- StackBuilderSink.cs
- XPathBinder.cs
- SystemIcons.cs
- BaseCollection.cs
- ListManagerBindingsCollection.cs
- IsolatedStorageFileStream.cs
- SqlNotificationEventArgs.cs
- ListViewGroup.cs
- StrongNameKeyPair.cs
- COM2PictureConverter.cs
- PathFigureCollection.cs
- PrintingPermissionAttribute.cs
- SelectionHighlightInfo.cs
- NavigationWindowAutomationPeer.cs
- BezierSegment.cs
- StatusBarItem.cs
- SafeHandle.cs
- _TLSstream.cs
- ImportCatalogPart.cs
- DataGridItemCollection.cs
- RouteValueDictionary.cs
- ScrollEvent.cs
- DataServiceConfiguration.cs
- WebPartDeleteVerb.cs
- CommonObjectSecurity.cs
- NetMsmqBinding.cs
- BufferBuilder.cs
- _ConnectionGroup.cs
- PackUriHelper.cs
- VirtualPath.cs
- SqlExpander.cs
- ping.cs
- CreateRefExpr.cs
- PathSegmentCollection.cs
- DataServiceExpressionVisitor.cs
- ListMarkerSourceInfo.cs
- Brushes.cs
- BinaryObjectWriter.cs
- DictionaryContent.cs
- QueueProcessor.cs
- COM2ColorConverter.cs
- PermissionAttributes.cs
- EUCJPEncoding.cs
- ListViewItem.cs
- URLMembershipCondition.cs
- ListMarkerSourceInfo.cs
- ConnectionStringsExpressionBuilder.cs
- ContextMenu.cs
- messageonlyhwndwrapper.cs
- ActivityBuilderXamlWriter.cs
- ExpiredSecurityTokenException.cs
- DurableInstancingOptions.cs
- RequestCacheValidator.cs
- LayoutEditorPart.cs
- ByteStack.cs
- SqlAliaser.cs
- HtmlEncodedRawTextWriter.cs
- ButtonBaseAdapter.cs
- ModuleBuilderData.cs
- CodeArrayCreateExpression.cs
- Label.cs
- TableAutomationPeer.cs
- ExpressionEvaluator.cs
- DataGridColumn.cs
- HttpRequestWrapper.cs
- PartialCachingAttribute.cs
- ToolStripGripRenderEventArgs.cs
- XmlConvert.cs
- XmlSchemaAny.cs
- WindowsTokenRoleProvider.cs
- HtmlTable.cs
- XmlElementCollection.cs
- MemberNameValidator.cs
- NameSpaceExtractor.cs
- ConnectionInterfaceCollection.cs
- SqlBulkCopy.cs
- WizardPanel.cs
- ConfigXmlCDataSection.cs
- TrackingServices.cs
- ParallelForEach.cs
- SecurityTokenException.cs
- BaseParaClient.cs
- OutArgumentConverter.cs
- CodeDOMProvider.cs
- SoapElementAttribute.cs
- CorrelationManager.cs
- _AcceptOverlappedAsyncResult.cs
- WindowsListViewGroup.cs
- ServiceHttpModule.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- GradientBrush.cs
- UrlPropertyAttribute.cs
- TypeDescriptionProvider.cs
- MD5.cs
- MenuBindingsEditorForm.cs
- Internal.cs
- TypeExtensionConverter.cs