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
- DataServiceKeyAttribute.cs
- CompositeFontFamily.cs
- SafeBitVector32.cs
- ChannelManagerHelpers.cs
- EditorPartCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- DataGridViewColumnConverter.cs
- MobileCategoryAttribute.cs
- D3DImage.cs
- ContentType.cs
- Size3D.cs
- CellTreeSimplifier.cs
- WebPartConnectVerb.cs
- ServiceMemoryGates.cs
- CellParaClient.cs
- ToolStripContainerDesigner.cs
- HandlerBase.cs
- DataConnectionHelper.cs
- FileInfo.cs
- QueryStringParameter.cs
- DataErrorValidationRule.cs
- GC.cs
- HttpRequest.cs
- EntityClientCacheEntry.cs
- KerberosSecurityTokenAuthenticator.cs
- QuaternionAnimationUsingKeyFrames.cs
- ScrollChrome.cs
- GroupBox.cs
- TiffBitmapEncoder.cs
- XPathNodeIterator.cs
- TreeNodeEventArgs.cs
- ColorConvertedBitmap.cs
- ControlPersister.cs
- SweepDirectionValidation.cs
- OutputCacheSettings.cs
- Menu.cs
- SymbolMethod.cs
- ActivityExecutionContextCollection.cs
- UrlMappingCollection.cs
- XPathParser.cs
- RequestCacheManager.cs
- ChannelServices.cs
- BinaryKeyIdentifierClause.cs
- GeometryCombineModeValidation.cs
- XmlWrappingReader.cs
- Activity.cs
- PageCodeDomTreeGenerator.cs
- StorageMappingFragment.cs
- ScrollContentPresenter.cs
- DeferredTextReference.cs
- HashLookup.cs
- ImmComposition.cs
- ObjectQueryState.cs
- Tokenizer.cs
- PropertyChangeTracker.cs
- ClientConfigurationHost.cs
- ElementMarkupObject.cs
- PassportAuthenticationEventArgs.cs
- WebContentFormatHelper.cs
- ArrayTypeMismatchException.cs
- HitTestFilterBehavior.cs
- OrderedDictionaryStateHelper.cs
- ExpressionLink.cs
- MouseGestureConverter.cs
- SamlAuthorityBinding.cs
- SigningCredentials.cs
- TextEditorTables.cs
- QilChoice.cs
- ReadOnlyNameValueCollection.cs
- CompilerGlobalScopeAttribute.cs
- TypedCompletedAsyncResult.cs
- CodeGen.cs
- TransportManager.cs
- oledbmetadatacollectionnames.cs
- RuleSetDialog.Designer.cs
- Group.cs
- ToolStripDropDown.cs
- FontSource.cs
- SqlDelegatedTransaction.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- HttpRuntimeSection.cs
- TextStore.cs
- ProviderManager.cs
- Restrictions.cs
- Tablet.cs
- ActivationArguments.cs
- PeerTransportCredentialType.cs
- ClaimTypeElementCollection.cs
- TextEndOfSegment.cs
- Page.cs
- ElementsClipboardData.cs
- DataColumn.cs
- ModuleBuilder.cs
- TextBox.cs
- DoWorkEventArgs.cs
- WebPartPersonalization.cs
- ToolStripItem.cs
- unitconverter.cs
- NavigatingCancelEventArgs.cs
- QueryContinueDragEvent.cs