代码之家  ›  专栏  ›  技术社区  ›  Tony

ASP.NET错误CS1026:)应为?

  •  1
  • Tony  · 技术社区  · 15 年前

    为什么在下面的行中看到CS1026错误:)?

    <%=Html.BeginForm("AddAdvertisement", "Advertisement"){%> //here
         hello
    <%} %>
    
    1 回复  |  直到 15 年前
        1
  •  4
  •   John Sheehan    15 年前

    docs ):

    <% using(Html.BeginForm("AddAdvertisement", "Advertisement")) { %> //here
         hello
    <% } %>
    
    推荐文章