📜  带参数的 Html.ActionLink - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:19.542000             🧑  作者: Mango

代码示例1
@Html.ActionLink(
    "Reply",                                                  // linkText
    "BlogReplyCommentAdd",                                    // actionName
    "Blog",                                                   // controllerName
    new {                                                     // routeValues
        blogPostId = blogPostId, 
        replyblogPostmodel = Model, 
        captchaValid = Model.AddNewComment.DisplayCaptcha 
    },
    null                                                      // htmlAttributes
)