Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 2 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VolatileEnlistmentState.cs
- EntityViewGenerationAttribute.cs
- ProviderSettingsCollection.cs
- CustomErrorsSectionWrapper.cs
- EntityProviderServices.cs
- ArrangedElement.cs
- CustomAttributeSerializer.cs
- WebZone.cs
- _SSPISessionCache.cs
- ObjectSet.cs
- EntityDataSourceStatementEditor.cs
- PostBackTrigger.cs
- SqlTriggerContext.cs
- MaterialGroup.cs
- EventHandlersStore.cs
- DataGridRow.cs
- AuthStoreRoleProvider.cs
- AutoGeneratedFieldProperties.cs
- FirstMatchCodeGroup.cs
- Geometry3D.cs
- SystemColorTracker.cs
- DataSourceSerializationException.cs
- BufferedStream.cs
- MemoryStream.cs
- BuildResultCache.cs
- _NetRes.cs
- LoginDesignerUtil.cs
- SecurityContext.cs
- IgnoreSectionHandler.cs
- CrossAppDomainChannel.cs
- Executor.cs
- DebugController.cs
- documentation.cs
- HttpModuleAction.cs
- DocumentViewerBaseAutomationPeer.cs
- ControlSerializer.cs
- GenericTypeParameterBuilder.cs
- ObjectPersistData.cs
- SkipStoryboardToFill.cs
- SoapCodeExporter.cs
- CompoundFileDeflateTransform.cs
- StorageMappingItemCollection.cs
- OverlappedContext.cs
- NumericUpDownAcceleration.cs
- BlockUIContainer.cs
- PinnedBufferMemoryStream.cs
- TransformCollection.cs
- WaitHandleCannotBeOpenedException.cs
- DockPattern.cs
- HwndSourceParameters.cs
- PerformanceCountersElement.cs
- DeferredSelectedIndexReference.cs
- TextTreeUndoUnit.cs
- DataColumnMappingCollection.cs
- UnicastIPAddressInformationCollection.cs
- DependencyPropertyDescriptor.cs
- TableSectionStyle.cs
- SymbolMethod.cs
- FormsAuthenticationModule.cs
- CreateUserErrorEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- RedistVersionInfo.cs
- BindingRestrictions.cs
- DataTableCollection.cs
- ComponentFactoryHelpers.cs
- ProgramNode.cs
- HtmlInputControl.cs
- COM2EnumConverter.cs
- DataGridItemEventArgs.cs
- RecognizerStateChangedEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- PersonalizationAdministration.cs
- HyperLink.cs
- UnionQueryOperator.cs
- CompilerGeneratedAttribute.cs
- SpellerHighlightLayer.cs
- TextureBrush.cs
- Misc.cs
- TemplateBindingExtension.cs
- OperatingSystem.cs
- DispatchWrapper.cs
- NotifyInputEventArgs.cs
- MethodImplAttribute.cs
- DataSvcMapFile.cs
- MemberMemberBinding.cs
- ToolStripLocationCancelEventArgs.cs
- graph.cs
- ProviderBase.cs
- DataGridComboBoxColumn.cs
- IisTraceListener.cs
- _CommandStream.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- VisualBrush.cs
- PointValueSerializer.cs
- DataColumnCollection.cs
- UserPersonalizationStateInfo.cs
- Trigger.cs
- MailDefinition.cs
- FixedSOMGroup.cs
- SqlDataAdapter.cs