Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我可以将此代码放在标记中以创建 C# 标记的转发器,但我可以在 VB.net 中做类似的事情吗
<% foreach (var c in Contacts) { %> <div class="footer"> <% if (c.Custody != null) { %> <label>Custody:</label> <%= c.Custody.Name %><br /> <% } %> </div> <% } %>
<% For Each itm In tContacts %> <div class="footer"> <% If itm.Custody IsNot Nothing Then %> <label>Custody:</label> <%= itm.Custody.Name %><br/> <% End If %> </div> <% Next %>
这应该可以解决问题!快乐编码!