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, it
s 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["''"]
?
精彩评论