开发者

ASP.NET Error CS1026: ) expected?

开发者 https://www.devze.com 2023-01-25 23:37 出处:网络
why do I see the CS1026 error:) expected at the line below ? <%=Html.BeginForm(\"AddAdvertisement\", \"Advertisement\"){%> //here

why do I see the CS1026 error:) expected at the line below ?

<%=Html.BeginForm("AddAdvertisement", "Advertisement"){%> //here
     hello
<%开发者_Go百科} %>


I think you want this instead (docs):

<% using(Html.BeginForm("AddAdvertisement", "Advertisement")) { %> //here
     hello
<% } %>
0

精彩评论

暂无评论...
验证码 换一张
取 消