Query string in asp.net mvc with accessing from URL now let’s call Action Method from Action Link from passing Query string. Calling Action method from Action Link with Passing Query string.
With Optional Parameters
@Html.ActionLink("Call Index Action", "Index", new { ID = 10, Name = 3, Department = "test" })
Without Optional Parameters
@Html.ActionLink("Call Details Action", "Details", new { Name = 3, Department = "test" })
No comments:
Post a Comment