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
- BreakSafeBase.cs
- ComponentTray.cs
- ProfileService.cs
- LogLogRecordHeader.cs
- SQLByteStorage.cs
- DefaultTextStoreTextComposition.cs
- DataGridViewCellCancelEventArgs.cs
- HtmlTableRowCollection.cs
- KeyValuePairs.cs
- ImportContext.cs
- DataSet.cs
- OverflowException.cs
- Repeater.cs
- PartitionedStream.cs
- PkcsUtils.cs
- MouseCaptureWithinProperty.cs
- PageEventArgs.cs
- AssemblyAttributes.cs
- safesecurityhelperavalon.cs
- XPathEmptyIterator.cs
- MimeParameter.cs
- XmlSchemaElement.cs
- TimeSpanValidator.cs
- XMLDiffLoader.cs
- DrawTreeNodeEventArgs.cs
- NativeMethods.cs
- httpapplicationstate.cs
- CredentialCache.cs
- Point3DCollection.cs
- CounterNameConverter.cs
- CodeAccessPermission.cs
- Descriptor.cs
- CapabilitiesPattern.cs
- PatternMatcher.cs
- DecimalStorage.cs
- PropertyGridCommands.cs
- XamlToRtfParser.cs
- UnsafeNativeMethods.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PropertyPath.cs
- XmlUtilWriter.cs
- VariableQuery.cs
- Object.cs
- ScriptingRoleServiceSection.cs
- GatewayIPAddressInformationCollection.cs
- Attributes.cs
- MaskedTextBox.cs
- TextMarkerSource.cs
- ListParagraph.cs
- UTF32Encoding.cs
- AccessorTable.cs
- MemberAccessException.cs
- ProxyElement.cs
- RestHandler.cs
- DoubleLinkListEnumerator.cs
- ExtendedPropertyDescriptor.cs
- WebPageTraceListener.cs
- StyleTypedPropertyAttribute.cs
- NotifyParentPropertyAttribute.cs
- DefaultPrintController.cs
- WSHttpSecurityElement.cs
- TrackingMemoryStream.cs
- SubMenuStyleCollectionEditor.cs
- LoadGrammarCompletedEventArgs.cs
- WorkflowIdleBehavior.cs
- TimeStampChecker.cs
- NumericPagerField.cs
- CompensatableTransactionScopeActivity.cs
- ResourceReferenceKeyNotFoundException.cs
- GroupByQueryOperator.cs
- diagnosticsswitches.cs
- GridToolTip.cs
- DeploymentSectionCache.cs
- DataServiceHostFactory.cs
- ParameterModifier.cs
- QilBinary.cs
- MruCache.cs
- AppDomainAttributes.cs
- _UriSyntax.cs
- ConditionCollection.cs
- TemplateControlParser.cs
- ColorPalette.cs
- DbMetaDataCollectionNames.cs
- GenericTextProperties.cs
- InternalsVisibleToAttribute.cs
- loginstatus.cs
- TextTreeText.cs
- FunctionImportMapping.cs
- WebPartVerbsEventArgs.cs
- FacetValues.cs
- CellPartitioner.cs
- DocumentViewer.cs
- XmlSchemaAny.cs
- RenderTargetBitmap.cs
- DrawingCollection.cs
- WhitespaceRuleReader.cs
- Cursors.cs
- XmlAutoDetectWriter.cs
- HandledMouseEvent.cs
- GetPageCompletedEventArgs.cs