問題がありcshtml
ます: このスニペットがあります:
@for (int i = 0; i < 25; i++)
{
<tr>
<td>
<input class="myCell" type="text" name ="num"@i/>
</td>
<td>
<input class="myCell" type="text" name="client"@i/>
</td>
<td>
<input class="myCell" type="date" name ="reception"@i/>
</td>
<td>
<input class="myCell" type="date" name="cloture"@i/>
</td>
</tr>
}
そして、最初の入力の名前を変更したいのですがnum0
、client0
.....最後の入力までnum23
... client23
、上記のスニペットを試してみましたが、うまくいきませんでした。
コードが機能しなかったのはなぜですか? どうすれば修正できますか?