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 / ValidatorCompatibilityHelper.cs / 1 / 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. // //----------------------------------------------------------------------------- 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
- FloatUtil.cs
- TemplateBaseAction.cs
- SQLInt64Storage.cs
- ClientConvert.cs
- AutomationIdentifierGuids.cs
- EnglishPluralizationService.cs
- ServiceMemoryGates.cs
- CellConstantDomain.cs
- Events.cs
- CompModSwitches.cs
- PageContent.cs
- UrlEncodedParameterWriter.cs
- CodePageEncoding.cs
- SecurityCredentialsManager.cs
- BaseProcessor.cs
- ContactManager.cs
- TrackingWorkflowEventArgs.cs
- StreamResourceInfo.cs
- CacheHelper.cs
- XmlDictionaryWriter.cs
- DataGridDesigner.cs
- TrackingServices.cs
- ProfileService.cs
- CharConverter.cs
- MouseOverProperty.cs
- DataGridToolTip.cs
- DataControlImageButton.cs
- DocumentXmlWriter.cs
- PagedDataSource.cs
- XslAst.cs
- SpeechAudioFormatInfo.cs
- ControlPager.cs
- SmtpTransport.cs
- TextControl.cs
- UnicodeEncoding.cs
- TextElementCollection.cs
- WebPartCollection.cs
- WebBrowsableAttribute.cs
- sqlser.cs
- ToolStripItemTextRenderEventArgs.cs
- Rotation3DAnimationBase.cs
- StrongNameUtility.cs
- ImplicitInputBrush.cs
- DiscoveryDocumentSearchPattern.cs
- WindowsRichEdit.cs
- NavigateEvent.cs
- ReflectionPermission.cs
- UnitySerializationHolder.cs
- DataQuery.cs
- ScriptReference.cs
- XmlSerializerNamespaces.cs
- DashStyle.cs
- GridViewCommandEventArgs.cs
- CustomAttributeFormatException.cs
- MetadataPropertyvalue.cs
- OdbcParameter.cs
- ClassGenerator.cs
- FileDialogCustomPlacesCollection.cs
- NativeMethods.cs
- SmtpNetworkElement.cs
- NativeMethods.cs
- SqlCacheDependency.cs
- ActiveXSite.cs
- ArrangedElementCollection.cs
- RuntimeDelegateArgument.cs
- OdbcReferenceCollection.cs
- PropertyCollection.cs
- CharacterShapingProperties.cs
- SecUtil.cs
- Exceptions.cs
- CodeSnippetTypeMember.cs
- MatrixTransform3D.cs
- HandlerMappingMemo.cs
- sapiproxy.cs
- ImageAttributes.cs
- SmtpNtlmAuthenticationModule.cs
- SegmentInfo.cs
- XamlLoadErrorInfo.cs
- isolationinterop.cs
- WebEventCodes.cs
- CheckPair.cs
- PropertyValueChangedEvent.cs
- QilList.cs
- WpfSharedXamlSchemaContext.cs
- ImageIndexEditor.cs
- EntityFunctions.cs
- InputManager.cs
- Color.cs
- ReliableOutputSessionChannel.cs
- RuleInfoComparer.cs
- CollectionBuilder.cs
- ACL.cs
- EventRoute.cs
- ConsumerConnectionPoint.cs
- InvalidComObjectException.cs
- TransactionFlowAttribute.cs
- DesignerCommandAdapter.cs
- RtfControlWordInfo.cs
- MetadataHelper.cs
- TimelineGroup.cs