1

我正在努力在 razor vb 中编写内联模板。

这是一个示例表单 c# 版本。有人可以翻译成 RAZOR vb 吗?

 <%Html.GridView<Employee>(
      this.ViewData.Model,
      data => { %>
        <table class="grid" cellpadding="0" cellspacing="0">
            <tr>
                <th>&nbsp;</th>
                <th>&nbsp;</td>
                <th>&nbsp;</td>
                <th>Name</th>
                <th>E-mail</th>
            </tr>
      <% },
4

1 回答 1

0

即使在最新的 Visual Studio 中,也没有出现这种支持,这是非常不幸的。似乎在某种程度上支持模板(取自this),但不适用于上面的复杂控制设置。真可惜。

于 2013-12-17T20:57:11.060 回答