-1

問題があり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> 
               }

そして、最初の入力の名前を変更したいのですがnum0client0.....最後の入力までnum23... client23、上記のスニペットを試してみましたが、うまくいきませんでした。

コードが機能しなかったのはなぜですか? どうすれば修正できますか?

4

2 に答える 2