Does Html.ActionLink () output form data?

Hi, form form data that will be available in another action of the same controller.

Is it possible? or is there another way?

+5
source share
2 answers

ActionLink is an anchor tag, so it doesn't post messages unless you perform some javascript tricks.

How the LinkButton control works in clasic asp.net.

+5
source

To answer the question in the topic: no.

To answer how you get the form for publishing in different actions depending on the button clicked: you can change the attribute of the form action using javascript depending on the click of the link / button.

, , , , , , , url attr.

, , javascript, , , , (, , )

+3

All Articles