开发者

MVC3 Razor using checkboxes both as indendent and also as exclusive along with JQuery validation

开发者 https://www.devze.com 2023-03-14 17:14 出处:网络
I am designing a new system with mvc 3 and with google I ended up reading so many links on stackoverflow mostly that had references to Pre-mvc release and mvc1 and some mvc2 and literally EVERYONE was

I am designing a new system with mvc 3 and with google I ended up reading so many links on stackoverflow mostly that had references to Pre-mvc release and mvc1 and some mvc2 and literally EVERYONE was presenting what they "felt" was a "good" way of doing checkboxes. I have 4 different mvc 2 books, but I do not want to rely on those (unless I don't get a current up to date response) as razor was not a part of mvc 2 as well as new tooling, thus once the mvc 3 books are officially out I would/will rely on them.

In the interim: I need to display some pages that have mutually exclusive checkboxes or other pages that don't need this. Thus some pages need to only allow for 1 checkbox and have Jquery to ensure this is happening, then on submit that I'm able to capture the box that was check. Then there are pages that need to allow for multiple checkboxes to be checked and that I will know on submit of all the ones checked. Seems that I had this ironed out with other languages including asp.net web forms, but I just wante开发者_开发问答d to ask the question as I am getting a dozen different solutions many of which are 1-3 years old. Thanks in advance.

0

精彩评论

暂无评论...
验证码 换一张
取 消