@using (Html.BeginForm("Index", "Expense", FormMethod.Get)) { <p> Month <select name="drpMonth"> @for (var i = 1; i <= 12; i++) { <option>@i</option> } </select> Year <select name="drpYear"> @for (var i = -3; i <= 3; i++) { <option>@(DateTime.Now.AddYears(i).Year)</option> } </select> <input type="submit" value="Filter" /> </p> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)