开发者

How to write a name as an array, mvc

I have the following code:

<%int count = 0; %>
<i开发者_如何学Pythonnput type="checkbox"  name="Name["'<%count++;%>'"]" />

The name isnt being rendered as expected, its being rendered as name="IssueCreate["''"]" />

How can I correct that?


You need to change <% %> to <%= %> to output the result of the expression.

Also, why are you using both types of quotes in IssueCreate["''"]?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜