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
- LayeredChannelFactory.cs
- HtmlPanelAdapter.cs
- MessageBox.cs
- SignedPkcs7.cs
- WebServiceReceiveDesigner.cs
- bidPrivateBase.cs
- MinimizableAttributeTypeConverter.cs
- CachedPathData.cs
- VisualTreeHelper.cs
- WindowsGrip.cs
- QueryOperationResponseOfT.cs
- GridItemPattern.cs
- XmlNodeChangedEventArgs.cs
- QuotedPrintableStream.cs
- SqlProcedureAttribute.cs
- ValueQuery.cs
- ObjectStateEntryDbDataRecord.cs
- SourceChangedEventArgs.cs
- ConstructorExpr.cs
- SystemColors.cs
- TdsParserSafeHandles.cs
- DockPattern.cs
- SiteOfOriginPart.cs
- Oid.cs
- ConnectionInterfaceCollection.cs
- ExecutedRoutedEventArgs.cs
- OdbcParameter.cs
- BufferedGraphicsManager.cs
- DataGridViewColumnTypePicker.cs
- Pen.cs
- NativeMethods.cs
- XhtmlTextWriter.cs
- PreservationFileWriter.cs
- WebBrowserContainer.cs
- SchemaType.cs
- DataSvcMapFileSerializer.cs
- CngAlgorithm.cs
- ResourceAssociationTypeEnd.cs
- CertificateElement.cs
- ArrayWithOffset.cs
- LocalTransaction.cs
- CompModSwitches.cs
- MexNamedPipeBindingCollectionElement.cs
- StrongNameMembershipCondition.cs
- ComponentChangingEvent.cs
- EventLogRecord.cs
- SettingsPropertyWrongTypeException.cs
- TPLETWProvider.cs
- DataGrid.cs
- METAHEADER.cs
- CellConstant.cs
- storepermission.cs
- WebPartMenu.cs
- DbSource.cs
- ManipulationVelocities.cs
- SmiEventSink.cs
- SQLBinaryStorage.cs
- QueryParameter.cs
- SessionEndingEventArgs.cs
- RemotingConfigParser.cs
- SortedList.cs
- ChangeBlockUndoRecord.cs
- ListViewItemSelectionChangedEvent.cs
- VisualTarget.cs
- FormsAuthenticationUser.cs
- AssemblyGen.cs
- IndexOutOfRangeException.cs
- UriTemplateQueryValue.cs
- PersonalizableAttribute.cs
- ImageFormat.cs
- OdbcException.cs
- OdbcConnectionString.cs
- RectConverter.cs
- ToolStripSettings.cs
- OracleEncoding.cs
- FileEnumerator.cs
- GeometryModel3D.cs
- TagPrefixInfo.cs
- XmlSerializerImportOptions.cs
- HwndHostAutomationPeer.cs
- log.cs
- OleDbWrapper.cs
- AtomEntry.cs
- SpecialNameAttribute.cs
- AbandonedMutexException.cs
- StateDesigner.LayoutSelectionGlyph.cs
- AudioFormatConverter.cs
- GridViewItemAutomationPeer.cs
- XmlKeywords.cs
- DataContractAttribute.cs
- MenuStrip.cs
- ConfigurationValidatorAttribute.cs
- MailDefinition.cs
- WebPartHelpVerb.cs
- XmlTypeMapping.cs
- SafeCoTaskMem.cs
- ConsoleCancelEventArgs.cs
- PersonalizationState.cs
- ECDsa.cs
- ApplicationBuildProvider.cs