Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- LockedAssemblyCache.cs
- SweepDirectionValidation.cs
- EntityDataSource.cs
- MarshalByValueComponent.cs
- SectionVisual.cs
- SyndicationSerializer.cs
- AttributedMetaModel.cs
- Base64Stream.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- CodeConditionStatement.cs
- MessageLoggingFilterTraceRecord.cs
- RegularExpressionValidator.cs
- TreeNodeCollectionEditor.cs
- Encoder.cs
- SafeBitVector32.cs
- Pair.cs
- ExpressionBinding.cs
- DefaultParameterValueAttribute.cs
- TemplateBaseAction.cs
- _SSPISessionCache.cs
- CategoryGridEntry.cs
- _TLSstream.cs
- RoutedEvent.cs
- ModelEditingScope.cs
- Maps.cs
- HtmlProps.cs
- UnsafeNativeMethodsPenimc.cs
- DNS.cs
- SlotInfo.cs
- ValidationRule.cs
- PopOutPanel.cs
- ACE.cs
- TransactionBridge.cs
- ChangesetResponse.cs
- StrongNameSignatureInformation.cs
- ScriptMethodAttribute.cs
- ErrorStyle.cs
- CodeNamespaceImportCollection.cs
- DragDropHelper.cs
- FormsAuthenticationEventArgs.cs
- FlowPosition.cs
- HwndSourceParameters.cs
- ProxyWebPart.cs
- XmlSchemaGroupRef.cs
- TextEffectResolver.cs
- ToolBarTray.cs
- EditorBrowsableAttribute.cs
- XmlSchemaCompilationSettings.cs
- Array.cs
- StrongNameHelpers.cs
- XPathNavigator.cs
- SpecialTypeDataContract.cs
- PageOutputColor.cs
- KeyNotFoundException.cs
- MultiView.cs
- ChildChangedEventArgs.cs
- SQLDecimal.cs
- SoapExtensionTypeElement.cs
- MissingManifestResourceException.cs
- LabelEditEvent.cs
- InsufficientMemoryException.cs
- XamlInt32CollectionSerializer.cs
- LinkButton.cs
- ActiveDocumentEvent.cs
- PartialTrustVisibleAssembliesSection.cs
- RequestCacheValidator.cs
- PagedDataSource.cs
- InputProcessorProfiles.cs
- XmlChoiceIdentifierAttribute.cs
- ClientOptions.cs
- BuildResult.cs
- Transform.cs
- ProfileElement.cs
- StagingAreaInputItem.cs
- FileLogRecordHeader.cs
- DataColumnChangeEvent.cs
- CqlWriter.cs
- MarshalByRefObject.cs
- DataContractSerializerOperationFormatter.cs
- ListViewTableCell.cs
- LineSegment.cs
- DescendentsWalker.cs
- CodeGeneratorOptions.cs
- _CookieModule.cs
- MessageDesigner.cs
- ThreadAttributes.cs
- __Filters.cs
- ProgressBar.cs
- Interfaces.cs
- ConfigurationManager.cs
- DataGridViewCell.cs
- DataList.cs
- BeginStoryboard.cs
- CharacterString.cs
- RemotingConfigParser.cs
- Substitution.cs
- ChangeDirector.cs
- CngKey.cs
- AggregateNode.cs
- WorkflowMarkupSerializationProvider.cs