I want to replace the WebUIValidation.js client script (located in System.Web assembly) with my own custom script using the new script replacement features in .NET 4.0.
The replacement works fine in a simple sample form I created, but in my much more complicated wizard form it fails. On partial post-back the ScriptManager writes the System.Web version to the browser and I end up with both Microsoft's version and my version of the script in the browser. Since the System.Web version loads last, it replaces my custom script.
I am using the ToolkitScriptManager intead of the ScriptManager everywhere. The form that needs the replacement has dynamically created controls (including the validation controls) and has several control extenders based on the AjaxControlToolkit.
Does anyone have any ideas on what could be going wrong, or have any ideas on a workaround for this?
Any help will be appreaciated,
View Complete Post