2016-04-16 96 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" /> 
}