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 / ValidatedControlConverter.cs / 1 / 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; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ValidatedControlConverter: ControlIDConverter { ///Filters and retrieves several types of values from validated controls. ////// 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. //------------------------------------------------------------------------------ //Determines whether a given control should have its id added to the StandardValuesCollection. ///// 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 ValidatedControlConverter: ControlIDConverter { ///Filters and retrieves several types of values from validated controls. ////// 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.Determines whether a given control should have its id added to the StandardValuesCollection. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Animatable.cs
- WebZone.cs
- SqlInternalConnection.cs
- Brush.cs
- OutputCacheProfileCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- PkcsUtils.cs
- ItemChangedEventArgs.cs
- ServiceObjectContainer.cs
- TypeBuilder.cs
- MSHTMLHost.cs
- EventDescriptor.cs
- CacheForPrimitiveTypes.cs
- WebSysDefaultValueAttribute.cs
- SafeTimerHandle.cs
- ClientOptions.cs
- WebHttpBindingCollectionElement.cs
- Line.cs
- XsdBuildProvider.cs
- PathGeometry.cs
- RelationshipSet.cs
- FixedPosition.cs
- ContentElement.cs
- PerformanceCounterLib.cs
- VersionedStreamOwner.cs
- LogLogRecordEnumerator.cs
- StringValidatorAttribute.cs
- HtmlAnchor.cs
- FixedNode.cs
- FieldMetadata.cs
- RestHandler.cs
- ImageListStreamer.cs
- AssociationSetEnd.cs
- AnnotationDocumentPaginator.cs
- DataSourceXmlSerializationAttribute.cs
- listitem.cs
- XamlPoint3DCollectionSerializer.cs
- FixedDocument.cs
- ReferenceCountedObject.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- ClientTargetSection.cs
- CallContext.cs
- ScalarConstant.cs
- IODescriptionAttribute.cs
- connectionpool.cs
- ElementMarkupObject.cs
- GenericWebPart.cs
- NamedPipeProcessProtocolHandler.cs
- WebPartConnectionsConnectVerb.cs
- DataTableExtensions.cs
- Module.cs
- NativeActivityFaultContext.cs
- BamlLocalizableResource.cs
- XmlUrlResolver.cs
- CurrencyManager.cs
- MenuItemCollection.cs
- ProxyManager.cs
- BitConverter.cs
- DynamicDocumentPaginator.cs
- BaseValidator.cs
- DropSourceBehavior.cs
- EventMetadata.cs
- Tokenizer.cs
- DynamicFilterExpression.cs
- TextAdaptor.cs
- ContextBase.cs
- RedistVersionInfo.cs
- PropVariant.cs
- Maps.cs
- FixedTextSelectionProcessor.cs
- AliasedExpr.cs
- NavigationPropertyEmitter.cs
- AssociationTypeEmitter.cs
- AggregateNode.cs
- StaticDataManager.cs
- ExecutionContext.cs
- WebPartAuthorizationEventArgs.cs
- IdnMapping.cs
- SHA384Managed.cs
- ParseChildrenAsPropertiesAttribute.cs
- RegionIterator.cs
- Border.cs
- DbConnectionPoolGroupProviderInfo.cs
- XmlSchemaGroupRef.cs
- KeyInfo.cs
- ClickablePoint.cs
- TypeResolver.cs
- SecureConversationVersion.cs
- AssemblyEvidenceFactory.cs
- HttpListener.cs
- AggregateNode.cs
- sqlser.cs
- SHA1CryptoServiceProvider.cs
- ResolveDuplex11AsyncResult.cs
- BinaryCommonClasses.cs
- XmlBindingWorker.cs
- XmlHierarchicalEnumerable.cs
- TypedElement.cs
- Canvas.cs
- XmlArrayItemAttributes.cs