Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 1305376 / 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}); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsStreamSecurityBindingElement.cs
- Localizer.cs
- StylusLogic.cs
- RegistryKey.cs
- StatusCommandUI.cs
- ValidatorCompatibilityHelper.cs
- GeometryGroup.cs
- InstanceNormalEvent.cs
- PipelineModuleStepContainer.cs
- HandlerMappingMemo.cs
- TextSelectionProcessor.cs
- StateItem.cs
- DesignerActionService.cs
- DataRow.cs
- NameTable.cs
- DBConcurrencyException.cs
- SQLRoleProvider.cs
- WSHttpSecurity.cs
- TextEditorDragDrop.cs
- SafeRightsManagementHandle.cs
- RepeatButtonAutomationPeer.cs
- AssemblyHelper.cs
- TextComposition.cs
- FormViewDeleteEventArgs.cs
- NavigationPropertyAccessor.cs
- TextSimpleMarkerProperties.cs
- WindowsAuthenticationEventArgs.cs
- DNS.cs
- RouteItem.cs
- TextViewElement.cs
- GridViewItemAutomationPeer.cs
- XmlSerializationGeneratedCode.cs
- TreeIterator.cs
- DataGridViewCell.cs
- CodeNamespace.cs
- ToolStripCustomTypeDescriptor.cs
- OdbcInfoMessageEvent.cs
- ImageResources.Designer.cs
- RangeContentEnumerator.cs
- ExecutorLocksHeldException.cs
- ListBindableAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- SafeFileHandle.cs
- DbDataReader.cs
- Thickness.cs
- DirectoryRedirect.cs
- IPipelineRuntime.cs
- ObjectPersistData.cs
- DataGridViewHitTestInfo.cs
- AttributeCollection.cs
- TemplateNameScope.cs
- itemelement.cs
- BufferedResponseStream.cs
- TableCellAutomationPeer.cs
- FlatButtonAppearance.cs
- XmlSchemaInfo.cs
- Variant.cs
- VisualBrush.cs
- PerformanceCountersElement.cs
- Directory.cs
- ClosureBinding.cs
- SBCSCodePageEncoding.cs
- NavigationFailedEventArgs.cs
- AnnotationHighlightLayer.cs
- FirstMatchCodeGroup.cs
- HtmlInputCheckBox.cs
- BridgeDataReader.cs
- HttpRuntimeSection.cs
- AttributeEmitter.cs
- OlePropertyStructs.cs
- ProxyHelper.cs
- DropSourceBehavior.cs
- AppliedDeviceFiltersDialog.cs
- HtmlFormWrapper.cs
- Calendar.cs
- CapabilitiesState.cs
- MediaTimeline.cs
- BevelBitmapEffect.cs
- TokenizerHelper.cs
- Intellisense.cs
- ObjectCloneHelper.cs
- Int32KeyFrameCollection.cs
- XmlSubtreeReader.cs
- dbdatarecord.cs
- Matrix3DStack.cs
- StatusBarAutomationPeer.cs
- JumpTask.cs
- TabletDevice.cs
- SafeProcessHandle.cs
- FlowchartDesignerCommands.cs
- CollectionContainer.cs
- TextEditorDragDrop.cs
- PointLightBase.cs
- PhysicalFontFamily.cs
- CursorInteropHelper.cs
- KnownTypeAttribute.cs
- Material.cs
- WsdlBuildProvider.cs
- UpdatePanel.cs
- NegationPusher.cs