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
- ApplicationBuildProvider.cs
- SqlTopReducer.cs
- HttpContext.cs
- FactoryGenerator.cs
- httpserverutility.cs
- Buffer.cs
- DataGridViewImageCell.cs
- PrintDocument.cs
- FilterableAttribute.cs
- PageEventArgs.cs
- WebBrowser.cs
- Fx.cs
- SqlUDTStorage.cs
- CollectionConverter.cs
- ValueTypeFixupInfo.cs
- ExpressionBuilder.cs
- XmlNamedNodeMap.cs
- Unit.cs
- EncoderBestFitFallback.cs
- X509RawDataKeyIdentifierClause.cs
- IntPtr.cs
- UseLicense.cs
- SettingsSavedEventArgs.cs
- ScrollBar.cs
- IHttpResponseInternal.cs
- RoutedEventValueSerializer.cs
- ReferencedCollectionType.cs
- PointValueSerializer.cs
- AmbientLight.cs
- DataContractSerializerElement.cs
- DecoderExceptionFallback.cs
- SqlCacheDependency.cs
- ListBoxItemAutomationPeer.cs
- TraceSource.cs
- Instrumentation.cs
- EntityClassGenerator.cs
- SystemDiagnosticsSection.cs
- CodeComment.cs
- ValidationRuleCollection.cs
- ServiceNameCollection.cs
- StylusShape.cs
- AutomationAttributeInfo.cs
- ProcessModelSection.cs
- CompositeControlDesigner.cs
- SystemWebCachingSectionGroup.cs
- IntegerValidator.cs
- DiagnosticTrace.cs
- RightsManagementEncryptedStream.cs
- StateMachineWorkflowInstance.cs
- AdRotatorDesigner.cs
- XmlDataProvider.cs
- ConnectionPointGlyph.cs
- TimeSpan.cs
- CopyCodeAction.cs
- PhysicalAddress.cs
- DataGridCell.cs
- _SSPIWrapper.cs
- MenuItem.cs
- ActiveXHelper.cs
- QilStrConcat.cs
- _SSPIWrapper.cs
- BindingSource.cs
- ScrollChangedEventArgs.cs
- IdleTimeoutMonitor.cs
- SymbolDocumentGenerator.cs
- TableCellAutomationPeer.cs
- DBProviderConfigurationHandler.cs
- X509SubjectKeyIdentifierClause.cs
- EntityDataReader.cs
- TransformedBitmap.cs
- MetafileHeaderEmf.cs
- MimeObjectFactory.cs
- _AcceptOverlappedAsyncResult.cs
- CookieHandler.cs
- _LocalDataStoreMgr.cs
- DockPattern.cs
- TextTreeDeleteContentUndoUnit.cs
- OuterGlowBitmapEffect.cs
- VoiceObjectToken.cs
- RuntimeEnvironment.cs
- Accessors.cs
- TreeNodeStyleCollection.cs
- AutoSizeComboBox.cs
- SecurityElement.cs
- RevocationPoint.cs
- PeerTransportBindingElement.cs
- UriExt.cs
- TypeCodeDomSerializer.cs
- WebPartPersonalization.cs
- RoamingStoreFileUtility.cs
- DataTemplateSelector.cs
- DataGridItem.cs
- HandleCollector.cs
- SqlProcedureAttribute.cs
- InternalEnumValidatorAttribute.cs
- UiaCoreTypesApi.cs
- NestPullup.cs
- WindowsAuthenticationEventArgs.cs
- GridViewRowEventArgs.cs
- ToolBar.cs