Using the AjaxControlToolkit in a .Net InMotion App

Rename InMotion.Web.Features.dll to InMotion.Web.Features.Orig.dll.  This file is located in Program Files/CodeChargeStudio4/Components/CodeTemplates/VBInMotion/Library (or C#InMotion if you are using C#). Download and unzip this file and put it in same directory as the file you renamed.  In this .dll I changed the MTScriptManager to inherit from ToolkitScriptManager instead of ScriptManager.  Download and copy the AjaxControlToolkit .dlls (I’m using the 3.5 version) to the bin
Read More »

Accessing Controls from Javascript

Below is some sample javascript code hiding/showing controls from Javascript when using the InMotion framework.  if (getMTControl("Batch.BatchCodeEditLink")) getMTControl("Batch.BatchCodeEditLink").style.display = 'none'; if (getMTControl("Batch.BatchCodeLabel")) getMTControl("Batch.BatchCodeLabel").style.display = 'none'; if (getMTControl("Batch.BatchCode")) getMTControl("Batch.BatchCode").style.display = 'block';