ASP.Net Ajax $common.parseUnit function
Im trying to adapt some code that I have found online that uses this function..
$co开发者_C百科mmon.parseUnit
Does anyone know where it lives as at present I am getting an "$common.parseUnit is undefined" error when the code hits that line.
Thanks.
$common.parseUnit()
is exposed by the common scripts of the ASP.NET AJAX Control Toolkit, so you probably need to install that toolkit.
EDIT: If you have the toolkit installed, check if you have properly referenced the common toolkit scripts, either by decorating your extender classes with:
[RequiredScript(typeof(CommonToolkitScripts))]
Or by explicitly adding the reference to your ToolkitScriptManager
:
yourToolkitScriptManager.Scripts.Add(new ScriptReference("Common.Common.js",
"AjaxControlToolkit"));
精彩评论