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
- EntityStoreSchemaFilterEntry.cs
- RegexCharClass.cs
- PageThemeCodeDomTreeGenerator.cs
- InkCanvasSelectionAdorner.cs
- activationcontext.cs
- InputLanguageEventArgs.cs
- RuleRef.cs
- TrackingParameters.cs
- ImageBrush.cs
- Activity.cs
- CorrelationManager.cs
- XmlElementAttributes.cs
- SqlStream.cs
- NullableFloatMinMaxAggregationOperator.cs
- MaskDesignerDialog.cs
- PropertyGridCommands.cs
- DescendantBaseQuery.cs
- InputLangChangeEvent.cs
- DXD.cs
- WebPartsPersonalization.cs
- DesignerOptions.cs
- MediaElement.cs
- ResourcesBuildProvider.cs
- TextSelectionProcessor.cs
- SqlInternalConnectionSmi.cs
- ConversionContext.cs
- FtpWebRequest.cs
- AttachedPropertyMethodSelector.cs
- IncrementalReadDecoders.cs
- QueryFunctions.cs
- QilStrConcatenator.cs
- UnionExpr.cs
- BamlWriter.cs
- LongTypeConverter.cs
- SQLGuidStorage.cs
- MenuItemBindingCollection.cs
- CommonRemoteMemoryBlock.cs
- MemoryMappedView.cs
- AuthenticationException.cs
- ColorAnimationBase.cs
- RuleConditionDialog.Designer.cs
- RawStylusSystemGestureInputReport.cs
- CurrentTimeZone.cs
- NominalTypeEliminator.cs
- RealizationDrawingContextWalker.cs
- nulltextcontainer.cs
- Repeater.cs
- ActivityAction.cs
- InputLanguageManager.cs
- DynamicActivityXamlReader.cs
- Schema.cs
- TypeSystem.cs
- StringValidatorAttribute.cs
- CodeStatementCollection.cs
- WSSecurityJan2004.cs
- GridViewRow.cs
- DelayDesigner.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridViewUtilities.cs
- WinEventWrap.cs
- BamlRecords.cs
- KerberosSecurityTokenAuthenticator.cs
- ApplicationContext.cs
- HtmlHead.cs
- ContractHandle.cs
- SafeBitVector32.cs
- SqlDeflator.cs
- SynthesizerStateChangedEventArgs.cs
- AdornerDecorator.cs
- ListViewGroupItemCollection.cs
- WorkflowRuntimeServiceElementCollection.cs
- FrameworkEventSource.cs
- UsernameTokenFactoryCredential.cs
- RadioButtonAutomationPeer.cs
- HttpContext.cs
- ProxyGenerator.cs
- WindowsFormsSynchronizationContext.cs
- BinarySerializer.cs
- CellCreator.cs
- RenderOptions.cs
- filewebrequest.cs
- SqlStatistics.cs
- Win32Native.cs
- SafeCertificateStore.cs
- WindowsScrollBar.cs
- PrimitiveXmlSerializers.cs
- ByteKeyFrameCollection.cs
- TaskFormBase.cs
- ConfigsHelper.cs
- VBCodeProvider.cs
- ResXResourceReader.cs
- DataGridViewTextBoxEditingControl.cs
- Helper.cs
- AxHostDesigner.cs
- XmlSchemaAnyAttribute.cs
- UserPreference.cs
- XmlSecureResolver.cs
- SQlBooleanStorage.cs
- TransactionCache.cs
- ApplicationServicesHostFactory.cs