Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4799

Submit (Post) Form using ActionLink in ASP.Net MVC

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) Form using ActionLink in ASP.Net MVC 5 Razor. @Html.ActionLink is rendered as an HTML Anchor Tag (HyperLink) and hence it produces a GET request to the Controller’s Action method which cannot be used to submit (post) Form in ASP.Net MVC 5 Razor. Hence in order to submit (post) Form using @Html.ActionLink, a jQuery Click event handler is assigned and when the @Html.ActionLink is clicked, Form is submitted (posted) using JavaScript Submit function.

Viewing all articles
Browse latest Browse all 4799

Latest Images

Trending Articles



Latest Images