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
- Label.cs
- PersonalizationDictionary.cs
- SafeRegistryHandle.cs
- CustomCategoryAttribute.cs
- OleDbDataAdapter.cs
- FixedFindEngine.cs
- DataServiceHostWrapper.cs
- Variant.cs
- TransportSecurityHelpers.cs
- XmlSerializerVersionAttribute.cs
- OrderedDictionaryStateHelper.cs
- EventLogEntry.cs
- HtmlAnchor.cs
- WebPartMovingEventArgs.cs
- CommentAction.cs
- SiteMembershipCondition.cs
- OleDbConnectionInternal.cs
- RuntimeCompatibilityAttribute.cs
- MetadataCollection.cs
- WebBrowsableAttribute.cs
- Page.cs
- InkCanvasFeedbackAdorner.cs
- TimeBoundedCache.cs
- LambdaCompiler.Unary.cs
- PaginationProgressEventArgs.cs
- Queue.cs
- ScalarType.cs
- XmlSchemaAnnotation.cs
- CodeCompiler.cs
- MessageBox.cs
- SignedPkcs7.cs
- SqlCharStream.cs
- SoapHeader.cs
- CanonicalFontFamilyReference.cs
- Root.cs
- AssemblySettingAttributes.cs
- CodeDirectoryCompiler.cs
- DataGridViewButtonColumn.cs
- MexHttpsBindingCollectionElement.cs
- GradientSpreadMethodValidation.cs
- MembershipSection.cs
- WindowsGraphicsCacheManager.cs
- OpenTypeLayout.cs
- Clock.cs
- ContentPresenter.cs
- CapabilitiesSection.cs
- WorkflowExecutor.cs
- EdmScalarPropertyAttribute.cs
- XmlSchemaFacet.cs
- BitmapFrame.cs
- ControlBuilderAttribute.cs
- HtmlForm.cs
- PlatformNotSupportedException.cs
- TextSelectionHighlightLayer.cs
- CommonRemoteMemoryBlock.cs
- UnsafeNativeMethods.cs
- DataGridViewCellLinkedList.cs
- ListControl.cs
- MetaTable.cs
- TransformationRules.cs
- Control.cs
- DataGridViewCheckBoxColumn.cs
- VectorCollectionValueSerializer.cs
- ViewDesigner.cs
- ApplicationProxyInternal.cs
- DataGridViewHitTestInfo.cs
- PropertyDescriptorGridEntry.cs
- PropertyGridView.cs
- DnsElement.cs
- XPathNode.cs
- DataServiceQuery.cs
- SpecularMaterial.cs
- EventlogProvider.cs
- ColumnWidthChangingEvent.cs
- SvcMapFileSerializer.cs
- DependencyObjectType.cs
- ServiceChannel.cs
- ReachVisualSerializerAsync.cs
- DataSet.cs
- CodeCatchClause.cs
- FactoryGenerator.cs
- HandleRef.cs
- RequestQueue.cs
- X509SecurityTokenAuthenticator.cs
- FormsAuthenticationEventArgs.cs
- SettingsSection.cs
- StorageEntitySetMapping.cs
- ChtmlImageAdapter.cs
- ConfigurationException.cs
- LayoutSettings.cs
- GenericUriParser.cs
- HttpCookie.cs
- WebPartEditorOkVerb.cs
- StoragePropertyMapping.cs
- CryptoConfig.cs
- Facet.cs
- Misc.cs
- Serializer.cs
- FileLevelControlBuilderAttribute.cs
- InheritanceAttribute.cs