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
- PtsCache.cs
- TextEditorThreadLocalStore.cs
- X509ChainPolicy.cs
- ipaddressinformationcollection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CheckedListBox.cs
- SimpleBitVector32.cs
- AtomContentProperty.cs
- XmlCharCheckingWriter.cs
- SectionInformation.cs
- HorizontalAlignConverter.cs
- TextSelectionProcessor.cs
- TreeNodeCollection.cs
- QueryConverter.cs
- TextSelectionProcessor.cs
- PreProcessInputEventArgs.cs
- ReachSerializer.cs
- ClientRoleProvider.cs
- XmlDataDocument.cs
- ServiceCredentials.cs
- ImageListUtils.cs
- ParallelEnumerable.cs
- DataGridViewCellStateChangedEventArgs.cs
- SynchronizationContext.cs
- QueueProcessor.cs
- FontStyles.cs
- IntSumAggregationOperator.cs
- RewritingSimplifier.cs
- ByteAnimationUsingKeyFrames.cs
- ToolStripContentPanel.cs
- RuntimeEnvironment.cs
- AnnotationMap.cs
- MultipleFilterMatchesException.cs
- XpsThumbnail.cs
- ProjectionNode.cs
- FastPropertyAccessor.cs
- AttributeData.cs
- FileVersion.cs
- CodeDOMUtility.cs
- RtfNavigator.cs
- ProcessModelInfo.cs
- OletxEnlistment.cs
- ImageDesigner.cs
- BreakRecordTable.cs
- BufferedResponseStream.cs
- FixUpCollection.cs
- SequentialOutput.cs
- EncryptedReference.cs
- ExecutionEngineException.cs
- Substitution.cs
- StringDictionaryCodeDomSerializer.cs
- _ConnectOverlappedAsyncResult.cs
- WebPartMenuStyle.cs
- ApplicationFileCodeDomTreeGenerator.cs
- mda.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SoapWriter.cs
- IIS7UserPrincipal.cs
- QueryConverter.cs
- QilParameter.cs
- IdentityManager.cs
- InputBinding.cs
- PointUtil.cs
- FormViewRow.cs
- PointConverter.cs
- InvalidProgramException.cs
- PersonalizableTypeEntry.cs
- TagMapInfo.cs
- GuidelineCollection.cs
- Rights.cs
- SchemaCollectionCompiler.cs
- NetworkInformationPermission.cs
- FormsAuthentication.cs
- TypeSource.cs
- CodeIndexerExpression.cs
- hebrewshape.cs
- LayoutTable.cs
- BinaryParser.cs
- NavigationExpr.cs
- LabelAutomationPeer.cs
- XmlEncApr2001.cs
- EarlyBoundInfo.cs
- DisplayNameAttribute.cs
- XmlHierarchicalEnumerable.cs
- ValidatingReaderNodeData.cs
- DataKey.cs
- ArglessEventHandlerProxy.cs
- NavigationEventArgs.cs
- TimeSpanSecondsConverter.cs
- FrameSecurityDescriptor.cs
- ListBoxChrome.cs
- ClientSettingsProvider.cs
- RichTextBox.cs
- TargetPerspective.cs
- DataGridViewComboBoxEditingControl.cs
- Frame.cs
- FixedSOMLineRanges.cs
- ParserOptions.cs
- PropertyTab.cs
- ThemeDirectoryCompiler.cs