2016-04-16 51 views

答えて

1

使用@()示すように: -

@for (int j = 1; j <= numberOfTravelers; j++) 
{ 
    <input type="text" name="[email protected](j)" class="input-text full-width" value="" placeholder="First Name" /> 
} 
1

これを試してみてください:

@for (int j = 1; j <= numberOfTravelers; j++) 
{ 
    <input type="text" name='@("FirstNameEN"+j)' class="input-text full-width" value="" placeholder="First Name" /> 
} 
関連する問題