I have a Razor form
using (Html.BeginForm("TermList", "Course", FormMethod.Get))
{
<div style="text-align:right;display:inline-block; width:48%; margin-right:25px;">
@Html.DropDownList( "id", (SelectList) ViewBag.schoolId)
</div>
<input type="submit" value="Choose school" />
}
I expected this form to post to URI of:
http://localhost:56939/Course/TermList/764
instead the route looks like:
http://localhost:56939/Course/TermList?id=764
the route is not being used. I'd like to do away with the parameter
?id=764