Answers for "actionlink with parameter in mvc"

4

Html.ActionLink with parameters

@Html.ActionLink(
    "Reply",                                                  // linkText
    "BlogReplyCommentAdd",                                    // actionName
    "Blog",                                                   // controllerName
    new {                                                     // routeValues
        blogPostId = blogPostId, 
        replyblogPostmodel = Model, 
        captchaValid = Model.AddNewComment.DisplayCaptcha 
    },
    null                                                      // htmlAttributes
)
Posted by: Guest on May-29-2020
0

asp mvc url.action parameter

<a href="<%: Url.Action("GetByList", "Listing", new { name = "John", contact = "calgary, vancouver" }) %>">
    <span>People</span>
</a>
Posted by: Guest on February-11-2021

Code answers related to "actionlink with parameter in mvc"

Browse Popular Code Answers by Language