带有复选框的Ajax.ActionLink(...) [英] Ajax.ActionLink(...) with checkbox

查看:72
本文介绍了带有复选框的Ajax.ActionLink(...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ajax.ActionLink("Link name",....)



可以在链接名称"的位置放置复选框吗?

如果可以,怎么办?

谢谢,



it is possible to put checkbox in place of "Link name" ?

if so how?

thanks,

推荐答案

简单的答案是否定的.该属性仅采用文本值.但是,您想做的是可能的.例如,您可以连接jQuery来查看复选框.选中后,您可以执行与ActionLink相同的方法.
The simple answer is no. That property only takes text values. However, what you want to do is possible. For instance, you could hook up jQuery to watch a checkbox. When it gets checked, you could execute the same method as the ActionLink would have executed.


这篇关于带有复选框的Ajax.ActionLink(...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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