Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RepeaterItem.cs
- AggregateNode.cs
- ContentControl.cs
- WebPartsSection.cs
- WebColorConverter.cs
- AuthenticationModuleElement.cs
- XmlAttributeProperties.cs
- DisplayMemberTemplateSelector.cs
- WindowsListViewItemCheckBox.cs
- SchemaMerger.cs
- RenderCapability.cs
- DesignerCalendarAdapter.cs
- SystemGatewayIPAddressInformation.cs
- SelectionGlyphBase.cs
- AttachedPropertyBrowsableAttribute.cs
- ListViewGroup.cs
- EnumBuilder.cs
- UserUseLicenseDictionaryLoader.cs
- WebResourceUtil.cs
- DocumentReferenceCollection.cs
- SqlFacetAttribute.cs
- TemplateNameScope.cs
- SQLRoleProvider.cs
- DefaultPropertyAttribute.cs
- TextMetrics.cs
- ScrollContentPresenter.cs
- DrawingGroup.cs
- OrderedHashRepartitionStream.cs
- XhtmlBasicImageAdapter.cs
- IODescriptionAttribute.cs
- RsaSecurityToken.cs
- FlowLayoutSettings.cs
- RuntimeIdentifierPropertyAttribute.cs
- Misc.cs
- DataQuery.cs
- ApplicationContext.cs
- SwitchDesigner.xaml.cs
- EastAsianLunisolarCalendar.cs
- RegistryExceptionHelper.cs
- DataObjectAttribute.cs
- GridViewSelectEventArgs.cs
- AffineTransform3D.cs
- OleDbStruct.cs
- WebPartManagerInternals.cs
- BaseCollection.cs
- Assert.cs
- BitmapEditor.cs
- XsdCachingReader.cs
- EncoderExceptionFallback.cs
- DeflateEmulationStream.cs
- DropDownList.cs
- FaultReasonText.cs
- SafeViewOfFileHandle.cs
- Properties.cs
- ZipIOExtraFieldZip64Element.cs
- SqlDataRecord.cs
- WebPartEditorApplyVerb.cs
- FrameworkElementAutomationPeer.cs
- ModuleElement.cs
- WinFormsSpinner.cs
- TimeSpanFormat.cs
- Transform3DGroup.cs
- ConnectionStringSettings.cs
- LinqExpressionNormalizer.cs
- DataServiceEntityAttribute.cs
- SqlDataSource.cs
- AndCondition.cs
- Canvas.cs
- Compiler.cs
- BamlBinaryWriter.cs
- WindowsFormsLinkLabel.cs
- RowToFieldTransformer.cs
- Command.cs
- FixedSOMGroup.cs
- EllipseGeometry.cs
- RoleExceptions.cs
- DrawTreeNodeEventArgs.cs
- IdSpace.cs
- QueuePropertyVariants.cs
- XmlQualifiedName.cs
- Point.cs
- ExpressionNormalizer.cs
- ApplyTemplatesAction.cs
- ResolveCriteria11.cs
- TracedNativeMethods.cs
- MultiTrigger.cs
- AnnotationStore.cs
- WebResponse.cs
- SchemaImporterExtension.cs
- WebEvents.cs
- DesignTimeValidationFeature.cs
- HWStack.cs
- ProgressBarRenderer.cs
- WebConfigurationFileMap.cs
- TableProviderWrapper.cs
- ManifestSignedXml.cs
- DrawingAttributes.cs
- ScriptModule.cs
- InvokeProviderWrapper.cs
- UInt64Converter.cs