调用Java脚本函数 [英] calling java script function
本文介绍了调用Java脚本函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
在我的应用程序中,我正在创建一个用户控件.
我无法从文件后面的用户控制代码调用Java脚本函数.
请告诉我您是否有解决方案.
在此先感谢.
Hi
In my application i am creating one user control.
I am not able to call java script function from user control code behind file.
Please tell me if you have any solution on it.
Thank in Advance.
推荐答案
请参阅类似的讨论:
在用户控件中调用javascript函数 [从用户控件中调用javascript函数 [ ^ ]
Refer similar discussions:
calling javascript function in user control[^]
calling a javascript function from a user control[^]
添加带有javascript函数名称的属性.会起作用的.
语法为:
btnExportToExcel.Attributes.Add("onclick","alert("警告您)");
Add the attributes with the javascript function name. It will work.
Syntax is:
btnExportToExcel.Attributes.Add("onclick", "alert(''Alert you'')");
这篇关于调用Java脚本函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文