Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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.
//------------------------------------------------------------------------------
//
// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReliableChannelListener.cs
- XNodeValidator.cs
- SecurityUtils.cs
- TypeToStringValueConverter.cs
- ArcSegment.cs
- ListSourceHelper.cs
- ClassicBorderDecorator.cs
- HtmlTableRowCollection.cs
- MergeLocalizationDirectives.cs
- TabletCollection.cs
- TimeoutStream.cs
- XmlAttributes.cs
- PropertyValue.cs
- SignatureHelper.cs
- CertificateManager.cs
- StringStorage.cs
- JulianCalendar.cs
- Helper.cs
- ClickablePoint.cs
- ExpressionBuilderCollection.cs
- ConvertersCollection.cs
- GatewayDefinition.cs
- UpdatePanelControlTrigger.cs
- CompositeTypefaceMetrics.cs
- SelfIssuedTokenFactoryCredential.cs
- UInt64Converter.cs
- EvidenceBase.cs
- DbProviderManifest.cs
- DateBoldEvent.cs
- NamespaceList.cs
- XmlSchemaSimpleContentExtension.cs
- ExpressionPrinter.cs
- DesignerUtils.cs
- TextBox.cs
- ObjectHandle.cs
- DataSourceCacheDurationConverter.cs
- MultipartContentParser.cs
- PersistenceTypeAttribute.cs
- CodeCatchClauseCollection.cs
- RedirectionProxy.cs
- PinnedBufferMemoryStream.cs
- ScaleTransform3D.cs
- ListViewInsertEventArgs.cs
- HttpMethodAttribute.cs
- TextBlock.cs
- SqlPersonalizationProvider.cs
- ParagraphResult.cs
- SecuritySessionSecurityTokenProvider.cs
- LocalizedNameDescriptionPair.cs
- StandardToolWindows.cs
- PerformanceCounterManager.cs
- SingletonConnectionReader.cs
- XsltLoader.cs
- ResourceBinder.cs
- Context.cs
- DefaultEventAttribute.cs
- _NegoStream.cs
- PlainXmlWriter.cs
- XmlEncApr2001.cs
- ISAPIApplicationHost.cs
- ComponentChangedEvent.cs
- ProcessModule.cs
- IssuedTokenClientElement.cs
- ComboBox.cs
- FormViewRow.cs
- UrlPropertyAttribute.cs
- DataContractFormatAttribute.cs
- CheckBox.cs
- EntityClientCacheEntry.cs
- CodeAccessSecurityEngine.cs
- XamlSerializer.cs
- EventDescriptor.cs
- ZipIOLocalFileDataDescriptor.cs
- ColorBlend.cs
- DesignerWidgets.cs
- PackUriHelper.cs
- FragmentQueryProcessor.cs
- InstanceHandleReference.cs
- ContentPresenter.cs
- NativeMethods.cs
- DataColumnCollection.cs
- ExpandCollapseIsCheckedConverter.cs
- DiscreteKeyFrames.cs
- CroppedBitmap.cs
- AddressingVersion.cs
- NetworkCredential.cs
- HtmlLinkAdapter.cs
- SequentialOutput.cs
- ContainerVisual.cs
- SlipBehavior.cs
- KerberosReceiverSecurityToken.cs
- ExtensionMethods.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TCEAdapterGenerator.cs
- ObjectListDesigner.cs
- DataGridViewCellMouseEventArgs.cs
- ClientSession.cs
- SEHException.cs
- StyleBamlTreeBuilder.cs
- RetrieveVirtualItemEventArgs.cs