JavaScript问题 [英] Javascript issue

查看:79
本文介绍了JavaScript问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了1个包含JavaScript函数的用户控件.
在同一页面中两次使用用户控件时,脚本不起作用.

Hi,

I have created 1 user control which contain JavaScript functions.
While using the user control twice in the same page, the script is not working.

推荐答案

使用ScriptManagerProxy,如kashif在ScriptManagerProxy [ ^ ]

问候
Espen Harlinn
Use ScriptManagerProxy as explained in by kashif in ScriptManagerProxy [^]

Regards
Espen Harlinn


更改控件ID并为每个ID调用一次函数


例如

change your controls id and call the function one time for each id


ex.

function CalcData(idcontrol)
{

return value
}

//call functions

CalcData(datastart);
CalcData(dataend);



使用idcontrol之类的函数参数

认为那是问题...

无论如何,脚本和错误都在这里

谢谢:doh:



use a idcontrol like parameter of your function

think that is the problem...

anyway past the script and error here

thanks :doh:


这篇关于JavaScript问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆