Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatedControlConverter.cs / 1305376 / ValidatedControlConverter.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;
///
/// Filters and retrieves several types of values from validated controls.
///
public class ValidatedControlConverter: ControlIDConverter {
///
/// Determines whether a given control should have its id added to the StandardValuesCollection.
///
protected override bool FilterControl(Control control) {
ValidationPropertyAttribute valProp = (ValidationPropertyAttribute)TypeDescriptor.GetAttributes(control)[typeof(ValidationPropertyAttribute)];
return valProp != null && valProp.Name != null;
}
}
}
// 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;
///
/// Filters and retrieves several types of values from validated controls.
///
public class ValidatedControlConverter: ControlIDConverter {
///
/// Determines whether a given control should have its id added to the StandardValuesCollection.
///
protected override bool FilterControl(Control control) {
ValidationPropertyAttribute valProp = (ValidationPropertyAttribute)TypeDescriptor.GetAttributes(control)[typeof(ValidationPropertyAttribute)];
return valProp != null && valProp.Name != null;
}
}
}
// 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
- DependencyObjectProvider.cs
- SelectingProviderEventArgs.cs
- safemediahandle.cs
- MdiWindowListItemConverter.cs
- InputLangChangeEvent.cs
- DataGridViewSortCompareEventArgs.cs
- OleDbCommand.cs
- FixedSOMPage.cs
- ObjectDataSourceStatusEventArgs.cs
- _FixedSizeReader.cs
- SourceFileBuildProvider.cs
- DiscreteKeyFrames.cs
- CapabilitiesRule.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DesignerSerializationOptionsAttribute.cs
- XXXInfos.cs
- DPCustomTypeDescriptor.cs
- CapabilitiesSection.cs
- SoapServerMessage.cs
- EnumerableWrapperWeakToStrong.cs
- PersonalizablePropertyEntry.cs
- EditingCoordinator.cs
- LockCookie.cs
- COM2Enum.cs
- PrintingPermissionAttribute.cs
- Query.cs
- MD5.cs
- FloaterBaseParagraph.cs
- LineGeometry.cs
- Vector3DValueSerializer.cs
- ConfigPathUtility.cs
- UIElement3D.cs
- Attributes.cs
- EventListener.cs
- TemplateInstanceAttribute.cs
- TreeViewAutomationPeer.cs
- ProgressChangedEventArgs.cs
- WindowsSlider.cs
- CopyNamespacesAction.cs
- RegexStringValidator.cs
- DataViewManagerListItemTypeDescriptor.cs
- EncryptedData.cs
- SeparatorAutomationPeer.cs
- CryptoStream.cs
- HybridObjectCache.cs
- DataGridState.cs
- Int64.cs
- ConnectionStringsExpressionEditor.cs
- VScrollProperties.cs
- WebPartConnection.cs
- XmlAttributes.cs
- HandleRef.cs
- StaticSiteMapProvider.cs
- CustomValidator.cs
- _ConnectStream.cs
- PersonalizationStateInfoCollection.cs
- securitycriticaldataClass.cs
- InternalPermissions.cs
- BinaryNegotiation.cs
- XmlSerializerAssemblyAttribute.cs
- FrameSecurityDescriptor.cs
- _TLSstream.cs
- CompilerState.cs
- Pen.cs
- shaperfactoryquerycachekey.cs
- TypedTableGenerator.cs
- GroupStyle.cs
- BuiltInExpr.cs
- PnrpPeerResolverElement.cs
- PopupRoot.cs
- TextServicesLoader.cs
- SqlParameterCollection.cs
- Int64Storage.cs
- SettingsPropertyValueCollection.cs
- ListBoxItemWrapperAutomationPeer.cs
- SessionPageStatePersister.cs
- SingleStorage.cs
- Debug.cs
- SafeRegistryHandle.cs
- Logging.cs
- HwndProxyElementProvider.cs
- DependencyPropertyKey.cs
- KernelTypeValidation.cs
- PersonalizationAdministration.cs
- UnsafeNativeMethodsCLR.cs
- ProxyManager.cs
- EdmScalarPropertyAttribute.cs
- XamlToRtfWriter.cs
- PermissionAttributes.cs
- VisualBrush.cs
- MessageQueueInstaller.cs
- CqlLexer.cs
- PathGeometry.cs
- RequestBringIntoViewEventArgs.cs
- FormViewUpdateEventArgs.cs
- HighContrastHelper.cs
- ApplicationProxyInternal.cs
- LayoutExceptionEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- coordinator.cs