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
- SimpleHandlerBuildProvider.cs
- StorageScalarPropertyMapping.cs
- FlagsAttribute.cs
- AsyncOperationManager.cs
- BaseTemplateBuildProvider.cs
- Point3D.cs
- ProcessModelInfo.cs
- UnsafeNativeMethods.cs
- EventMap.cs
- ResourcePool.cs
- CodeArrayIndexerExpression.cs
- RelativeSource.cs
- XmlDataSource.cs
- SafeHandles.cs
- SecurityException.cs
- QilTypeChecker.cs
- PreloadedPackages.cs
- FilterEventArgs.cs
- QueryBranchOp.cs
- ThaiBuddhistCalendar.cs
- SqlDataRecord.cs
- StylusTip.cs
- FramingChannels.cs
- SqlBulkCopyColumnMappingCollection.cs
- DetailsViewRowCollection.cs
- PaginationProgressEventArgs.cs
- GridViewColumnCollection.cs
- PeerToPeerException.cs
- ToolStripContentPanelRenderEventArgs.cs
- PathFigureCollection.cs
- RowParagraph.cs
- BaseComponentEditor.cs
- XmlPreloadedResolver.cs
- MethodBody.cs
- ClientOptions.cs
- RepeatBehavior.cs
- FixedDocumentSequencePaginator.cs
- BooleanConverter.cs
- CodeGroup.cs
- RowTypePropertyElement.cs
- OleDbConnection.cs
- RuntimeHelpers.cs
- SortDescriptionCollection.cs
- followingsibling.cs
- PeerContact.cs
- UnsafeNativeMethods.cs
- NavigateUrlConverter.cs
- BitmapEffectDrawingContextState.cs
- RemotingAttributes.cs
- BlockUIContainer.cs
- ToolStripEditorManager.cs
- ResourceKey.cs
- DataComponentMethodGenerator.cs
- MetadataItemCollectionFactory.cs
- SoapAttributeAttribute.cs
- PassportPrincipal.cs
- StateItem.cs
- DataGridState.cs
- TreeNodeCollectionEditor.cs
- XmlEventCache.cs
- HtmlInputHidden.cs
- Types.cs
- GlobalAllocSafeHandle.cs
- BrowserTree.cs
- ISAPIApplicationHost.cs
- FixedPageAutomationPeer.cs
- Marshal.cs
- AppSecurityManager.cs
- DataSourceXmlSerializationAttribute.cs
- SecurityUtils.cs
- OdbcConnectionStringbuilder.cs
- Int16Converter.cs
- TextRangeEditLists.cs
- WebDisplayNameAttribute.cs
- MappingSource.cs
- ContextProperty.cs
- RtfFormatStack.cs
- Timer.cs
- RectangleHotSpot.cs
- ScaleTransform3D.cs
- WithStatement.cs
- IPEndPoint.cs
- MediaPlayer.cs
- _ProxyRegBlob.cs
- WebHeaderCollection.cs
- FunctionCommandText.cs
- ImageMapEventArgs.cs
- JournalEntry.cs
- SimpleType.cs
- TraceHwndHost.cs
- GridViewColumnCollection.cs
- HierarchicalDataSourceControl.cs
- ToolZone.cs
- DbConnectionPool.cs
- DataServiceClientException.cs
- HttpServerUtilityWrapper.cs
- DefaultTextStoreTextComposition.cs
- ManipulationVelocities.cs
- VisemeEventArgs.cs
- AddingNewEventArgs.cs