如何在ASP.NET mvc中触发checkbox事件。 [英] How to fire checkbox event in ASP.NET mvc.

查看:84
本文介绍了如何在ASP.NET mvc中触发checkbox事件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的项目中使用动态复选框列表的过滤器功能,以便...如何在asp.net mvc中触发Checkbox事件。请任何人给我这个建议。我是MVC的新手。这是我的项目参考链接。



http://www.venuebookings.com/reception



请参阅页面的提升框以了解复选框功能



我尝试过:



NA

I want Filter functionality using Dynamic checkboxes list in my project so...How to fire Checkbox event in asp.net mvc. Please any one advice me about this.I am new for MVC.This is the my project reference link.

http://www.venuebookings.com/reception

Please see the liftside of the page for check box functionality

What I have tried:

NA

推荐答案

你的问题太宽泛了,你基本上是在询问如何建立一个网站。我建议你得到一本关于MVC的书,然后通过它,或者至少在线阅读一些教程,如何做这些事情就会变得清晰。



回答您的具体问题最简单的方法是使用jQuery和点击事件;



.click()| jQuery API文档 [ ^ ]



或更正确的更改活动



.change()| jQuery API文档 [ ^ ]



但是这不会让你在任务中走得更远,你还需要知道如何使用ajax来调用控制器方法,如何在页面上传递数据,如何搜索数据库,如何显示结果等。处理复选框的click事件只是你要实现的功能的一小部分。
Your question is far too broad, you're essentially asking how to build a website. I suggest you get a book on MVC and go through it, or at least go through some tutorials online, and how to do these things will become clear.

To answer your specific question the easiest way is to use jQuery and the click event;

.click() | jQuery API Documentation[^]

or more correctly the change event

.change() | jQuery API Documentation[^]

However that won't get you far in your quest, you'll also need to know how to use ajax to call controller methods, how to pass the data on the page, how to search the database, how to show the results etc etc. Handling the click event of a checkbox is a very small part of the functionality you want to implement.


这篇关于如何在ASP.NET mvc中触发checkbox事件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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