任何人都可以帮我编写任务。 我的xml包含带有div的标签,用于定义为内容提供外部样式,下面是我的xml代码。
<?xml version="1.0" encoding="utf-8"?>
<content>
<studies>
<heading><div class="head">XSLO</div></heading>
<industry><div class="indus">Environment</div></industry>
<product><div class="prod">Phone</div></product>
<description><div class="text">It provides a user fiendly enivironment and makes the GUI interface more reliable and compatable</div></description>
</studies>
<studies>
<heading><div class="head">Hotel Management</div></heading>
<industry><div class="indus">Hotel</div></industry>
<product><div class="prod">Hobbyist</div></product>
<description><div class="text">Customer relationship and quality is very important .Timing is also keeps up</div></description>
</studies>
<checks>
<div class="check_indus">
<div class="check_head">Industry</div>
<Environmental><input type="checkbox">Environment</input></Environmental>
<Hotel><input type="checkbox">Hotel</input></Hotel>
</div>
<div class="check_prod">
<div class="check_head">Product</div>
<Phone><input type="checkbox">Phone</input></Phone>
<Hobbyist><input type="checkbox">Hobbyist</input></Hobbyist>
</checks>
</content>
以上是我的xml文件。现在要执行的操作是每当我们检查一个或多个复选框时,研究标签下的内容应该检查行业和产品标签并相应地显示。任何人都可以帮助我在ASP.NET MVC 4编码。 它可以通过在视图页面中编码或通过在模型类中查询来完成。答案是最期望的,请帮助我。提前谢谢。