小编t-b*_*boy的帖子

如何从命令行为智能设备cab项目创建inf文件?

我试图让我的持续集成在命令行上从msbuild中创建构建智能设备cab项目.我发现的所有东西都说使用在visual studio中构建项目时创建的inf文件(带有cabwiz).有没有办法使用.vddproj文件创建inf,以便我可以将它与cabwiz.exe一起使用?

msbuild cab cabwiz smart-device

7
推荐指数
1
解决办法
7432
查看次数

如何使用Asp.net MVC验证列表属性是否具有最小项目数(count = N)?

我有一个视图模型,其属性看起来像这样

Property SelectedGroups() as List(of string)
Run Code Online (Sandbox Code Playgroud)

在视图中我有这样的东西

<table>
    <tr>
        <th>Description</th>
    </tr>
    <tr>
        <td>
            <input type="hidden" name="SelectedGroups" value="one" />
            description one
        </td>
    </tr>
    <tr>
        <td>
            <input type="hidden" name="SelectedGroups" value="two" />
            description two
        </td>
    </tr>
    <tr>
        <td>
            <input type="hidden" name="SelectedGroups" value="three" />
            description three
        </td>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

使用jquery添加和删除表行.有没有办法在SelectedGroups属性上创建一个验证属性,该属性需要列表的最小项目数?这可以用javascript完成,但我希望它可以使用

<% Html.EnableClientValidation()%>
<%: Html.ValidationSummary(False)%>
Run Code Online (Sandbox Code Playgroud)

validation asp.net-mvc binding

5
推荐指数
1
解决办法
2028
查看次数

标签 统计

asp.net-mvc ×1

binding ×1

cab ×1

cabwiz ×1

msbuild ×1

smart-device ×1

validation ×1