MVC ASP.NET Url.Action in form action, passing it form data

Viewed 13471
        <form action="@Url.Action("PokemonSteps", "PokemonView", new { id = Model.Id, steps = steps })">
            <input type="number" name="steps" min="1" max="@Model.userSteps">
            <input type="submit">
        </form>

This form is a number box from 1 to the amount of steps the user has. When they submit the number in the box, I want to pass it to @Url.Action as the steps in the steps = steps part.

How do I go about that (sorry for the really stupid question)

2 Answers
Related