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
- Section.cs
- StyleXamlParser.cs
- OutOfMemoryException.cs
- Mutex.cs
- ClientSideProviderDescription.cs
- ProvidePropertyAttribute.cs
- DataBindingExpressionBuilder.cs
- ExpressionBuilder.cs
- ToolStripDropDownItem.cs
- FloaterBaseParaClient.cs
- ServiceModelActivationSectionGroup.cs
- Vector3DAnimationBase.cs
- precedingsibling.cs
- MessagePartSpecification.cs
- LookupNode.cs
- Root.cs
- AttributeData.cs
- LazyTextWriterCreator.cs
- DirectionalLight.cs
- wgx_render.cs
- SystemIcmpV6Statistics.cs
- RecognizerBase.cs
- StyleXamlTreeBuilder.cs
- BitStream.cs
- KernelTypeValidation.cs
- DateTimeUtil.cs
- KeyTime.cs
- XmlResolver.cs
- SignatureHelper.cs
- ArraySortHelper.cs
- BufferedReadStream.cs
- ProtocolReflector.cs
- DecimalConstantAttribute.cs
- ZipIOLocalFileHeader.cs
- SimpleFileLog.cs
- ScriptServiceAttribute.cs
- DashStyles.cs
- OdbcDataReader.cs
- DataColumnCollection.cs
- FieldMetadata.cs
- FlatButtonAppearance.cs
- QueryExpr.cs
- DbMetaDataCollectionNames.cs
- SerialPort.cs
- PackageProperties.cs
- IndicCharClassifier.cs
- TabItemAutomationPeer.cs
- ACL.cs
- Vector3DValueSerializer.cs
- UIPropertyMetadata.cs
- XmlQueryContext.cs
- SqlWebEventProvider.cs
- ErrorInfoXmlDocument.cs
- BindingNavigatorDesigner.cs
- ToolStripDropTargetManager.cs
- FilteredDataSetHelper.cs
- UrlPath.cs
- ZipIOExtraFieldZip64Element.cs
- ByteAnimationBase.cs
- WindowsGrip.cs
- GlobalDataBindingHandler.cs
- PeerNameRecord.cs
- HScrollProperties.cs
- Script.cs
- SmiXetterAccessMap.cs
- ZipIOExtraFieldPaddingElement.cs
- HuffModule.cs
- VerificationException.cs
- TableLayoutStyleCollection.cs
- StreamingContext.cs
- HtmlButton.cs
- BindingContext.cs
- HttpSessionStateBase.cs
- ContextMenu.cs
- PrimaryKeyTypeConverter.cs
- ByteStreamMessageEncodingElement.cs
- PrimitiveDataContract.cs
- XamlReaderConstants.cs
- ChameleonKey.cs
- ReadWriteControlDesigner.cs
- FixedBufferAttribute.cs
- FamilyMapCollection.cs
- latinshape.cs
- Dictionary.cs
- WriteFileContext.cs
- EntityFrameworkVersions.cs
- InfoCardKeyedHashAlgorithm.cs
- OpacityConverter.cs
- ApplySecurityAndSendAsyncResult.cs
- XmlNodeList.cs
- CodeTypeReferenceExpression.cs
- ChannelBase.cs
- AffineTransform3D.cs
- ThreadBehavior.cs
- FragmentQueryProcessor.cs
- TableCellCollection.cs
- LookupBindingPropertiesAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- BaseCollection.cs
- AccessDataSource.cs