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
- XmlTextReaderImpl.cs
- LoadWorkflowByInstanceKeyCommand.cs
- DBDataPermissionAttribute.cs
- SrgsGrammarCompiler.cs
- MessagingDescriptionAttribute.cs
- LocalBuilder.cs
- TemplateControl.cs
- CustomCategoryAttribute.cs
- LocalValueEnumerator.cs
- QuaternionAnimation.cs
- QueryInterceptorAttribute.cs
- HtmlObjectListAdapter.cs
- ControlBuilder.cs
- EastAsianLunisolarCalendar.cs
- CodeCompiler.cs
- sortedlist.cs
- OdbcRowUpdatingEvent.cs
- OnOperation.cs
- XmlAttributeProperties.cs
- TableHeaderCell.cs
- SqlAggregateChecker.cs
- Stacktrace.cs
- InputLangChangeRequestEvent.cs
- ButtonColumn.cs
- LinkAreaEditor.cs
- HtmlInputHidden.cs
- SmtpMail.cs
- formatter.cs
- FileLoadException.cs
- ConfigurationSettings.cs
- TextRangeEditTables.cs
- FactoryGenerator.cs
- XmlSchemaImporter.cs
- UnsafeNativeMethods.cs
- FieldNameLookup.cs
- TraceContextEventArgs.cs
- coordinatorscratchpad.cs
- SeekableReadStream.cs
- CodeTryCatchFinallyStatement.cs
- OleDbConnectionFactory.cs
- shaperfactory.cs
- ComponentDispatcher.cs
- DomNameTable.cs
- TextHidden.cs
- FrugalMap.cs
- EmptyControlCollection.cs
- FormatterConverter.cs
- EventData.cs
- JsonReaderDelegator.cs
- ImageSourceConverter.cs
- GradientBrush.cs
- PageRanges.cs
- ProxyWebPartManager.cs
- JavaScriptSerializer.cs
- BaseUriHelper.cs
- PhysicalOps.cs
- webbrowsersite.cs
- DataControlFieldCell.cs
- Quack.cs
- WebPermission.cs
- MenuStrip.cs
- ParserHooks.cs
- TimeZone.cs
- documentsequencetextview.cs
- WebConfigurationHostFileChange.cs
- TemplatedAdorner.cs
- VerificationAttribute.cs
- SR.Designer.cs
- LineVisual.cs
- XPathNavigatorException.cs
- DefaultPrintController.cs
- DurableInstanceContextProvider.cs
- SelectingProviderEventArgs.cs
- DataGridViewComboBoxCell.cs
- EventPrivateKey.cs
- StringToken.cs
- NullableConverter.cs
- PopupRootAutomationPeer.cs
- BooleanStorage.cs
- TextContainer.cs
- EntityContainerRelationshipSetEnd.cs
- MapPathBasedVirtualPathProvider.cs
- CommandDevice.cs
- TablePatternIdentifiers.cs
- DataControlFieldCell.cs
- AxHost.cs
- DiscoveryClientReferences.cs
- BindableTemplateBuilder.cs
- IProducerConsumerCollection.cs
- SqlRecordBuffer.cs
- Scheduling.cs
- XmlSerializableWriter.cs
- PasswordBoxAutomationPeer.cs
- ClientBuildManagerCallback.cs
- LateBoundBitmapDecoder.cs
- GenerateHelper.cs
- OrderedDictionary.cs
- ConfigurationElementCollection.cs
- documentsequencetextcontainer.cs
- CharacterBuffer.cs