Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 3 / ValidatorCompatibilityHelper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Globalization; using System.Reflection; using System.Web.Util; // Needed to support Validators in AJAX 1.0 (Windows OS Bugs 2015831) internal static class ValidatorCompatibilityHelper { public static void RegisterArrayDeclaration(Control control, string arrayName, string arrayValue) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterArrayDeclaration", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, arrayName, arrayValue}); } public static void RegisterClientScriptResource(Control control, Type type, string resourceName) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterClientScriptResource", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, type, resourceName}); } public static void RegisterExpandoAttribute(Control control, string controlId, string attributeName, string attributeValue, bool encode) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterExpandoAttribute", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, controlId, attributeName, attributeValue, encode}); } public static void RegisterOnSubmitStatement(Control control, Type type, string key, string script) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterOnSubmitStatement", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, type, key, script}); } public static void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterStartupScript", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, type, key, script, addScriptTags}); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HScrollProperties.cs
- TableItemStyle.cs
- CodeNamespace.cs
- ProfileInfo.cs
- BrowsableAttribute.cs
- UnsafeNativeMethodsCLR.cs
- PhysicalFontFamily.cs
- OperationAbortedException.cs
- SiteMapProvider.cs
- GridEntry.cs
- TokenizerHelper.cs
- MenuItemBindingCollection.cs
- XPathItem.cs
- PropertyRecord.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ImageMap.cs
- ProjectionAnalyzer.cs
- WhitespaceReader.cs
- DocumentApplicationJournalEntry.cs
- TextMarkerSource.cs
- ToolboxControl.cs
- ExceptionHelpers.cs
- WebPartEditorCancelVerb.cs
- ExpandableObjectConverter.cs
- ControlParameter.cs
- HttpGetProtocolImporter.cs
- DependencyProperty.cs
- EventProvider.cs
- InstanceCompleteException.cs
- Deserializer.cs
- ContractMapping.cs
- BindableAttribute.cs
- ChangeTracker.cs
- ElapsedEventArgs.cs
- ComplexBindingPropertiesAttribute.cs
- peersecuritysettings.cs
- TableAutomationPeer.cs
- NamespaceMapping.cs
- InstanceDescriptor.cs
- PeerHelpers.cs
- RuntimeWrappedException.cs
- PriorityBinding.cs
- WebPartDescriptionCollection.cs
- NativeMethods.cs
- FixedFindEngine.cs
- UIElementCollection.cs
- DocumentViewerHelper.cs
- ValidatorUtils.cs
- OletxTransactionManager.cs
- AutomationPropertyInfo.cs
- StorageInfo.cs
- TransformConverter.cs
- VirtualizedItemPattern.cs
- IndentedTextWriter.cs
- LongValidator.cs
- HttpWrapper.cs
- XmlHierarchicalEnumerable.cs
- SqlPersonalizationProvider.cs
- ConfigsHelper.cs
- ChangeConflicts.cs
- CompilationLock.cs
- ResourceExpressionEditor.cs
- ItemContainerGenerator.cs
- ColorTransformHelper.cs
- MorphHelpers.cs
- FixedPosition.cs
- EditableTreeList.cs
- EntityParameter.cs
- RootCodeDomSerializer.cs
- SqlRecordBuffer.cs
- IriParsingElement.cs
- DataServiceKeyAttribute.cs
- CurrentChangingEventArgs.cs
- FontStyles.cs
- Code.cs
- TextReader.cs
- PageParser.cs
- DataErrorValidationRule.cs
- DesignOnlyAttribute.cs
- LinqDataSourceStatusEventArgs.cs
- Stackframe.cs
- ObjectItemAssemblyLoader.cs
- Cursor.cs
- CmsInterop.cs
- NotFiniteNumberException.cs
- ObjectSecurity.cs
- SqlTrackingService.cs
- HttpChannelHelper.cs
- XmlSignatureProperties.cs
- FormsAuthenticationConfiguration.cs
- DataListItem.cs
- EntryWrittenEventArgs.cs
- AppAction.cs
- DynamicILGenerator.cs
- UnmanagedMemoryStream.cs
- ReadWriteSpinLock.cs
- FrameworkObject.cs
- HttpWebResponse.cs
- ParserStreamGeometryContext.cs
- MetafileHeaderWmf.cs