2013-03-07 18 views
1

我很努力地在剃须刀vb中编写内嵌模板。如何在Razor中编写VB Inline html模板?

这里是一个示例窗体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> 
     <% }, 

回答

0

即使在最新的Visual Studio中,它也没有出现,这是支持的,这是非常不幸的。它看起来似乎在某种程度上支持模板(从this中获得),但不适用于像上面那样的复杂控制设置。游民。