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

Pass (Send) Model from View to Controller using ActionLink in ASP.Net MVC

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Model data (object) from View to Controller 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 send Model data (object). Hence in order to pass (send) Model data (object) from View to Controller using @Html.ActionLink, a Form Submission needs to be performed when the ActionLink is clicked with the help of jQuery.

Viewing all articles
Browse latest Browse all 4777

Trending Articles