开发者

How to write a name as an array, mvc

开发者 https://www.devze.com 2022-12-28 13:02 出处:网络
I have the following code: <%int count = 0; %> <i开发者_如何学Pythonnput type=\"checkbox\"name=\"Name[\"\'<%count++;%>\'\"]\" />

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

精彩评论

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

关注公众号