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
- HierarchicalDataSourceDesigner.cs
- ValuePattern.cs
- FontDifferentiator.cs
- HttpFileCollection.cs
- Model3D.cs
- RuntimeTrackingProfile.cs
- FrameworkRichTextComposition.cs
- SafePEFileHandle.cs
- RoleService.cs
- Container.cs
- Keyboard.cs
- StandardOleMarshalObject.cs
- DataGridColumnCollection.cs
- Parser.cs
- XmlElement.cs
- ClrProviderManifest.cs
- RelatedImageListAttribute.cs
- OleDbMetaDataFactory.cs
- SeparatorAutomationPeer.cs
- MessageSmuggler.cs
- BrowserTree.cs
- FastPropertyAccessor.cs
- TrustSection.cs
- ExpressionBinding.cs
- ThicknessConverter.cs
- BrowserCapabilitiesFactory.cs
- Tuple.cs
- FontStretches.cs
- SQLSingle.cs
- PasswordRecoveryAutoFormat.cs
- ServiceNameElement.cs
- RelationshipConverter.cs
- SoundPlayer.cs
- FileLogRecordEnumerator.cs
- UnsupportedPolicyOptionsException.cs
- DataGridViewDataErrorEventArgs.cs
- XmlNamespaceMapping.cs
- X509ChainElement.cs
- SimpleFileLog.cs
- CodeBlockBuilder.cs
- RepeatButtonAutomationPeer.cs
- CompModHelpers.cs
- DbProviderFactory.cs
- PreservationFileWriter.cs
- SqlTrackingWorkflowInstance.cs
- Region.cs
- MetabaseReader.cs
- ElementUtil.cs
- CommandField.cs
- RijndaelManaged.cs
- MethodMessage.cs
- SymmetricAlgorithm.cs
- ColorEditor.cs
- Aggregates.cs
- DirectionalLight.cs
- TemplateNodeContextMenu.cs
- BoundsDrawingContextWalker.cs
- BinaryUtilClasses.cs
- EdmConstants.cs
- IdentityModelDictionary.cs
- TableSectionStyle.cs
- DebuggerAttributes.cs
- AbstractSvcMapFileLoader.cs
- GeometryConverter.cs
- ParsedAttributeCollection.cs
- CryptoApi.cs
- PaginationProgressEventArgs.cs
- PriorityQueue.cs
- OleDbErrorCollection.cs
- ZipFileInfoCollection.cs
- PointAnimationClockResource.cs
- Nodes.cs
- StyleXamlTreeBuilder.cs
- XmlNodeList.cs
- WSHttpSecurityElement.cs
- TypeReference.cs
- GridSplitterAutomationPeer.cs
- _NTAuthentication.cs
- NativeCppClassAttribute.cs
- Control.cs
- StringFormat.cs
- ValueUnavailableException.cs
- PeerConnector.cs
- UIElementHelper.cs
- ButtonChrome.cs
- ByteStorage.cs
- DiscoveryReferences.cs
- TextEditorContextMenu.cs
- ListSourceHelper.cs
- PopupEventArgs.cs
- NativeMethods.cs
- ProgressiveCrcCalculatingStream.cs
- StateWorkerRequest.cs
- SecurityTokenAuthenticator.cs
- SafeArchiveContext.cs
- CheckoutException.cs
- SchemaMapping.cs
- RawStylusInput.cs
- Int64KeyFrameCollection.cs
- UnsettableComboBox.cs