0

Hi i have this project where i have an string parameter on a page the form make the post to

/booking/confirm

but it need to post to

/Booking/Confirm?guid=013b0053-5840-4866-97c2-d544d8b6a34c

i could ofcourse just write

@using (Html.BeginForm())

but i need an class on the form for an jquery function so my using looks like this

@using (Html.BeginForm("Confirm", "Booking", FormMethod.Post, new { @class = "sigPad"}))
4

2 回答 2

2

不使用助手编写html

<form action="@Url.Action("Prods","Products", new { guid=013b0053-5840-4866-97c2-d544d8b6a34c })" method="POST" class="sigPad">
...
</form>
于 2013-09-11T16:18:37.337 回答
2

@using (Html.BeginForm("Confirm", "Booking", new { guid=013b0053-5840-4866-97c2-d544d8b6a34c }

于 2013-09-11T14:16:56.580 回答