在asp.net c#中调用gridview的rowcommand事件之前从jprompt获取值 [英] get value from jprompt before calling rowcommand event of gridview in asp.net c#
本文介绍了在asp.net c#中调用gridview的rowcommand事件之前从jprompt获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
急需帮助!!!!
在致电之前从jprompt获取价值asp.net中的gridview的rowcommand事件c#
请帮忙。
提前致谢。
Hello,
Need urgent help!!!!
get value from jprompt before calling rowcommand event of gridview in asp.net c#
please help.
Thanks in advance.
推荐答案
如果你想在客户端获取数据你可以使用onClientClick控制导致回发/行命令
我猜您使用的是 http://labs.abeautifulsite.net/archived/jquery-alerts/demo中的jpromt / [ ^ ]
所以你可以有类似的东西
If you want get data at clientside you can use onClientClick propery of control that is causing postback/rowcommand
I guess you are using jpromt from http://labs.abeautifulsite.net/archived/jquery-alerts/demo/[^]
So you can have something like
jPrompt('Type something:', 'Prefilled value', 'Prompt Dialog', function(r) {
if( r )
{
(' #MyhiddenField')。val(r);
}
});
('#MyhiddenField').val(r); } });
这篇关于在asp.net c#中调用gridview的rowcommand事件之前从jprompt获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文