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
- _ListenerAsyncResult.cs
- UrlParameterReader.cs
- SimpleType.cs
- _KerberosClient.cs
- Debug.cs
- RootBrowserWindow.cs
- Fx.cs
- BaseParaClient.cs
- SqlPersonalizationProvider.cs
- Internal.cs
- FlagPanel.cs
- XmlSchemaSimpleContentExtension.cs
- PriorityBindingExpression.cs
- Pkcs7Recipient.cs
- NeutralResourcesLanguageAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- DocumentPageHost.cs
- ExpressionVisitor.cs
- XmlUtil.cs
- TreeViewHitTestInfo.cs
- ScrollItemPatternIdentifiers.cs
- WebEvents.cs
- UserControlBuildProvider.cs
- RectAnimation.cs
- XmlSigningNodeWriter.cs
- TraceData.cs
- UpdateTracker.cs
- CompatibleComparer.cs
- OleDbErrorCollection.cs
- FixedBufferAttribute.cs
- Funcletizer.cs
- IndividualDeviceConfig.cs
- KeyPullup.cs
- VectorCollectionValueSerializer.cs
- BufferModeSettings.cs
- brushes.cs
- ApplicationHost.cs
- FragmentQueryProcessor.cs
- WrappedReader.cs
- SqlMethodTransformer.cs
- ITextView.cs
- NativeMethods.cs
- ToolStripManager.cs
- OracleNumber.cs
- TextEditorLists.cs
- ListComponentEditor.cs
- NetCodeGroup.cs
- ConnectionPoolManager.cs
- Camera.cs
- CredentialCache.cs
- AuthorizationRuleCollection.cs
- TemplateParser.cs
- FontUnit.cs
- AudioFileOut.cs
- MergeFailedEvent.cs
- ScaleTransform3D.cs
- XmlSerializerSection.cs
- ClientSettingsSection.cs
- ButtonChrome.cs
- HotSpotCollection.cs
- BufferAllocator.cs
- EpmSyndicationContentSerializer.cs
- RectangleF.cs
- ComponentConverter.cs
- ConditionBrowserDialog.cs
- TypeExtension.cs
- UrlPath.cs
- Label.cs
- InstrumentationTracker.cs
- ButtonField.cs
- SecurityUtils.cs
- NotImplementedException.cs
- EnumType.cs
- SqlBulkCopy.cs
- InstanceDescriptor.cs
- DtcInterfaces.cs
- DelegateSerializationHolder.cs
- EntityAdapter.cs
- SpanIndex.cs
- EnumBuilder.cs
- PermissionAttributes.cs
- PropertyMapper.cs
- ActivityTypeResolver.xaml.cs
- WsdlBuildProvider.cs
- SystemIcmpV4Statistics.cs
- StringConcat.cs
- ObjectDataSourceView.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- GPStream.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- DoWorkEventArgs.cs
- MetaData.cs
- ZipFileInfoCollection.cs
- SoapFault.cs
- DPAPIProtectedConfigurationProvider.cs
- OdbcFactory.cs
- EventlogProvider.cs
- TableLayoutCellPaintEventArgs.cs
- TextDecoration.cs
- OleDbSchemaGuid.cs