Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BadImageFormatException.cs
- MimeObjectFactory.cs
- EmptyControlCollection.cs
- BidOverLoads.cs
- HtmlButton.cs
- FontWeight.cs
- AppDomainFactory.cs
- PlainXmlWriter.cs
- CompilerParameters.cs
- ComponentChangingEvent.cs
- HttpListenerContext.cs
- ReflectPropertyDescriptor.cs
- ServerValidateEventArgs.cs
- DataSvcMapFile.cs
- EasingQuaternionKeyFrame.cs
- ExpressionEvaluator.cs
- CompressEmulationStream.cs
- FixedTextSelectionProcessor.cs
- SessionPageStateSection.cs
- dbenumerator.cs
- SerialStream.cs
- FileNameEditor.cs
- ProcessHostMapPath.cs
- TraceListeners.cs
- InvokeHandlers.cs
- Span.cs
- EntityViewGenerator.cs
- AllMembershipCondition.cs
- NameTable.cs
- XmlSchemaFacet.cs
- PropertyInformationCollection.cs
- NativeCppClassAttribute.cs
- ScriptReferenceBase.cs
- Triangle.cs
- DoubleCollectionValueSerializer.cs
- SqlBulkCopy.cs
- Point3DKeyFrameCollection.cs
- Transform.cs
- StorageComplexPropertyMapping.cs
- ChannelManager.cs
- GradientStop.cs
- ImageSourceTypeConverter.cs
- WebServiceMethodData.cs
- ReplyChannel.cs
- ProtocolViolationException.cs
- BadImageFormatException.cs
- ToolStripScrollButton.cs
- RTLAwareMessageBox.cs
- Util.cs
- RangeValueProviderWrapper.cs
- TextClipboardData.cs
- Utility.cs
- TreeView.cs
- OutOfMemoryException.cs
- DataSvcMapFileSerializer.cs
- ImpersonationContext.cs
- ComponentResourceKey.cs
- QueryPageSettingsEventArgs.cs
- MyContact.cs
- StructuralType.cs
- ProfileParameter.cs
- SynchronousChannelMergeEnumerator.cs
- SecureUICommand.cs
- EntityModelBuildProvider.cs
- RepeaterCommandEventArgs.cs
- ProfilePropertyNameValidator.cs
- WebPartDisplayModeCancelEventArgs.cs
- mediapermission.cs
- ConfigXmlElement.cs
- HMACSHA384.cs
- XmlSchemaFacet.cs
- ClientFormsAuthenticationMembershipProvider.cs
- SqlClientFactory.cs
- Path.cs
- Task.cs
- RawStylusInput.cs
- BuildResultCache.cs
- DataGridToolTip.cs
- FontFamilyIdentifier.cs
- OutputCacheSettingsSection.cs
- serverconfig.cs
- odbcmetadatacollectionnames.cs
- SHA256Managed.cs
- SelectionEditingBehavior.cs
- SystemIPv6InterfaceProperties.cs
- DownloadProgressEventArgs.cs
- XmlQueryStaticData.cs
- DataRowCollection.cs
- OracleSqlParser.cs
- BitmapImage.cs
- SmtpDigestAuthenticationModule.cs
- SqlNotificationRequest.cs
- ProxyManager.cs
- HtmlButton.cs
- DataKeyCollection.cs
- DocumentGridContextMenu.cs
- SecurityPolicySection.cs
- RemoteX509AsymmetricSecurityKey.cs
- MsmqIntegrationBindingElement.cs
- ResourceAssociationSetEnd.cs