I have a property in controller like
public int NumberOfPersons
{
get { return _NumberOfPersons; }
set { _NumberOfPersons = value; }
}
private int _NumberOfNights = 7;
and I want to create a cascade dropdown with 7 numbers. Eg.
<select>
<option>1</option>
...
<option>7</option>
</select>
Can you please tell me how could I do?
Tanks
In your View you can write this: