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
- MetadataException.cs
- UserNameSecurityToken.cs
- mediaclock.cs
- RegularExpressionValidator.cs
- AssemblyAssociatedContentFileAttribute.cs
- TargetControlTypeAttribute.cs
- KnownTypeAttribute.cs
- NativeObjectSecurity.cs
- HttpWebResponse.cs
- TreeNodeMouseHoverEvent.cs
- SettingsAttributes.cs
- DrawingGroupDrawingContext.cs
- ContextMenuService.cs
- ItemTypeToolStripMenuItem.cs
- handlecollector.cs
- LockRecursionException.cs
- ListViewContainer.cs
- DrawingImage.cs
- Serializer.cs
- XmlBinaryReader.cs
- ImportCatalogPart.cs
- DesignerTransactionCloseEvent.cs
- ADMembershipUser.cs
- HistoryEventArgs.cs
- QilPatternVisitor.cs
- DetailsViewPageEventArgs.cs
- DocumentationServerProtocol.cs
- ArgumentOutOfRangeException.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OdbcError.cs
- FilterQuery.cs
- KeyConstraint.cs
- UnsafeNativeMethodsCLR.cs
- ActivityExecutorOperation.cs
- AppSettingsReader.cs
- RefType.cs
- LocalizationComments.cs
- SqlDelegatedTransaction.cs
- ErrorWebPart.cs
- PrivacyNoticeBindingElement.cs
- XamlReader.cs
- ConditionCollection.cs
- InfoCardConstants.cs
- OperatingSystem.cs
- SweepDirectionValidation.cs
- WorkflowDebuggerSteppingAttribute.cs
- PolicyStatement.cs
- Visitors.cs
- PipelineModuleStepContainer.cs
- DBCSCodePageEncoding.cs
- DWriteFactory.cs
- VectorCollectionConverter.cs
- Evaluator.cs
- XPathArrayIterator.cs
- GradientBrush.cs
- ResourceReader.cs
- TypeInformation.cs
- DataControlLinkButton.cs
- ScrollProperties.cs
- ListBoxItemWrapperAutomationPeer.cs
- AspNetHostingPermission.cs
- XhtmlBasicValidatorAdapter.cs
- PointAnimationBase.cs
- Polygon.cs
- RichTextBoxAutomationPeer.cs
- HandlerFactoryWrapper.cs
- DataGridViewColumnEventArgs.cs
- SqlTriggerAttribute.cs
- SystemUdpStatistics.cs
- ComplexPropertyEntry.cs
- SHA1CryptoServiceProvider.cs
- DateTimeSerializationSection.cs
- FrameworkPropertyMetadata.cs
- SQLString.cs
- Floater.cs
- RegisteredExpandoAttribute.cs
- Mutex.cs
- ArrayElementGridEntry.cs
- ISO2022Encoding.cs
- BasePattern.cs
- SqlLiftWhereClauses.cs
- ReadOnlyCollectionBase.cs
- XmlSerializationGeneratedCode.cs
- SafeEventLogReadHandle.cs
- DaylightTime.cs
- WithStatement.cs
- GridViewUpdatedEventArgs.cs
- DataControlLinkButton.cs
- WebPartRestoreVerb.cs
- Tuple.cs
- ProjectionNode.cs
- WebContext.cs
- OleDbConnectionFactory.cs
- Border.cs
- ProxyAttribute.cs
- VirtualStackFrame.cs
- DataColumnPropertyDescriptor.cs
- DictationGrammar.cs
- ComponentEvent.cs
- DataSetMappper.cs