Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AddIn.cs
- CodeSubDirectoriesCollection.cs
- ScalarConstant.cs
- ListViewItem.cs
- GridItemPattern.cs
- SafeEventLogWriteHandle.cs
- TripleDESCryptoServiceProvider.cs
- FixUpCollection.cs
- SqlFileStream.cs
- HashAlgorithm.cs
- BaseAutoFormat.cs
- _AutoWebProxyScriptHelper.cs
- basevalidator.cs
- RelationshipWrapper.cs
- DefaultValueTypeConverter.cs
- HttpProxyTransportBindingElement.cs
- Crypto.cs
- BindingNavigator.cs
- FixedTextBuilder.cs
- JavaScriptObjectDeserializer.cs
- XmlQueryTypeFactory.cs
- AlphabeticalEnumConverter.cs
- DateTimeUtil.cs
- StreamGeometryContext.cs
- DictionaryEditChange.cs
- WebRequestModuleElementCollection.cs
- LastQueryOperator.cs
- NameValueCollection.cs
- BoundColumn.cs
- GridViewUpdatedEventArgs.cs
- FixUp.cs
- XmlObjectSerializer.cs
- NegatedConstant.cs
- Msec.cs
- LinearGradientBrush.cs
- ProtocolInformationWriter.cs
- ConnectionConsumerAttribute.cs
- PeerCollaboration.cs
- InstanceDataCollectionCollection.cs
- SiteMapPath.cs
- httpserverutility.cs
- XPathNavigator.cs
- DataList.cs
- RawMouseInputReport.cs
- KnownBoxes.cs
- ValidateNames.cs
- ProxySimple.cs
- PerformanceCounterManager.cs
- GeneralTransform3DTo2DTo3D.cs
- QilReplaceVisitor.cs
- TextPatternIdentifiers.cs
- Parsers.cs
- WizardForm.cs
- EastAsianLunisolarCalendar.cs
- AtomServiceDocumentSerializer.cs
- XmlSchemaSequence.cs
- ResXBuildProvider.cs
- CodeSnippetTypeMember.cs
- SymbolMethod.cs
- ComNativeDescriptor.cs
- XmlQueryRuntime.cs
- Soap12ServerProtocol.cs
- PageRequestManager.cs
- TableRowCollection.cs
- altserialization.cs
- SelectionChangedEventArgs.cs
- PersonalizationAdministration.cs
- Activator.cs
- CellTreeNode.cs
- FixedSOMGroup.cs
- GlyphingCache.cs
- Int32CAMarshaler.cs
- XmlSchemaObject.cs
- AttachedProperty.cs
- sqlpipe.cs
- TimeIntervalCollection.cs
- NativeMethods.cs
- FixedDSBuilder.cs
- ConfigurationSectionGroup.cs
- ComAdminWrapper.cs
- SchemaTypeEmitter.cs
- FocusManager.cs
- InvokeMethodActivityDesigner.cs
- InputScopeAttribute.cs
- AllMembershipCondition.cs
- MemberAccessException.cs
- DbConnectionPoolOptions.cs
- DbProviderFactory.cs
- WebConfigurationManager.cs
- XmlFormatExtensionPointAttribute.cs
- XNodeValidator.cs
- ChameleonKey.cs
- BamlResourceDeserializer.cs
- UrlMappingCollection.cs
- Table.cs
- ValidationSummary.cs
- TextEditorParagraphs.cs
- DataServiceRequest.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DataGrid.cs