I want to add an ID attribute to my form, so I follow the answer here
Originally my code was using:
Html.BeginForm()
and the output looks like this:
<form action="/Controller/Action?Id=5" method="post">
but when I replace the Html.BeginForm() with:
Html.BeginForm(null, null, FormMethod.Post, new { @Id = "blah" });
the output form is missing the parameter:
<form action="/Controller/Action" method="post">
It all seems to just work "magically" if I replace the BeginForm with <form action="" method="post">
but I'd like to understand what's going wrong with the helper version.