在itemcommand上调用Javascript函数 [英] Call Javascript function on itemcommand

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

问题描述

在itemcommand上调用Javascript函数。

i使用了

Call Javascript function on itemcommand.
i have used

ScriptManager.RegisterStartupScript(this.Page, typeof(Page), Guid.NewGuid().ToString(), "Display();", true);



但它不起作用。


but it doesn''t work.

推荐答案

Hi Softprga,



试试这个和让我知道..



Hi Softprga,

Try this and let me know..

ClientScript.RegisterStartupScript(GetType(), "Load", "<script type='text/javascript'>alert('Hi!');</script>");







谢谢,

RelicV




Thank you,
RelicV


这篇关于在itemcommand上调用Javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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