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
- ExpressionLexer.cs
- HtmlEmptyTagControlBuilder.cs
- ToolStripCollectionEditor.cs
- OAVariantLib.cs
- ExtensionWindowResizeGrip.cs
- WindowsScrollBarBits.cs
- Sql8ExpressionRewriter.cs
- ListSortDescriptionCollection.cs
- ShapingEngine.cs
- IssuanceLicense.cs
- SiteOfOriginContainer.cs
- FatalException.cs
- GroupStyle.cs
- DictionarySectionHandler.cs
- MultiDataTrigger.cs
- ActivityDesigner.cs
- OutputCacheProfile.cs
- DataServiceKeyAttribute.cs
- ProgressBarHighlightConverter.cs
- DuplicateWaitObjectException.cs
- BoundPropertyEntry.cs
- SerialErrors.cs
- UICuesEvent.cs
- UserNamePasswordClientCredential.cs
- DescendentsWalker.cs
- FontConverter.cs
- ScopedKnownTypes.cs
- TypeViewSchema.cs
- DeclaredTypeValidatorAttribute.cs
- Visual3D.cs
- SQLDouble.cs
- DataGridCommandEventArgs.cs
- SchemaObjectWriter.cs
- TrayIconDesigner.cs
- BlurEffect.cs
- XmlSecureResolver.cs
- ReadContentAsBinaryHelper.cs
- StrongNameUtility.cs
- DriveInfo.cs
- RsaElement.cs
- ConnectionInterfaceCollection.cs
- EpmSourcePathSegment.cs
- ToolboxDataAttribute.cs
- ResolveCriteriaApril2005.cs
- TypeDescriptionProvider.cs
- SchemaImporterExtensionElementCollection.cs
- RC2CryptoServiceProvider.cs
- FormsIdentity.cs
- LockCookie.cs
- SynchronizationContext.cs
- RenderingBiasValidation.cs
- RuntimeVariablesExpression.cs
- StrokeCollection2.cs
- XNameTypeConverter.cs
- DataGridViewImageColumn.cs
- _HeaderInfoTable.cs
- wgx_sdk_version.cs
- HandleRef.cs
- TemplateComponentConnector.cs
- EntityCommandCompilationException.cs
- WindowsListViewScroll.cs
- WindowPattern.cs
- TcpPortSharing.cs
- SynchronizedInputAdaptor.cs
- PersianCalendar.cs
- XamlSerializerUtil.cs
- DoubleCollectionValueSerializer.cs
- IpcChannel.cs
- MediaElementAutomationPeer.cs
- TCPClient.cs
- ExtensionSimplifierMarkupObject.cs
- UriSection.cs
- XmlBinaryWriter.cs
- TextModifier.cs
- StringToken.cs
- MasterPage.cs
- InputScopeNameConverter.cs
- Transform.cs
- ClientConfigurationSystem.cs
- MethodBody.cs
- PropertyEmitterBase.cs
- DbMetaDataColumnNames.cs
- Int32AnimationBase.cs
- WebPartConnectionsConfigureVerb.cs
- XsltSettings.cs
- UserPreferenceChangedEventArgs.cs
- ScriptResourceAttribute.cs
- EdmMember.cs
- EventLogTraceListener.cs
- messageonlyhwndwrapper.cs
- ServiceOperationParameter.cs
- OpCellTreeNode.cs
- ExcludeFromCodeCoverageAttribute.cs
- RegexCode.cs
- Convert.cs
- XmlSchemaComplexContent.cs
- CodeAttributeDeclarationCollection.cs
- Vector3DAnimationBase.cs
- ShapingWorkspace.cs
- Stopwatch.cs