Html.ActionLink with a specified HTML id?

前端 未结 4 920
青春惊慌失措
青春惊慌失措 2021-02-02 06:47

I\'d like to give the like generated with an Html.ActionLink an HTML id so I can change the CSS depending on where I am. I have a MasterPage with a set

4条回答
  •  盖世英雄少女心
    2021-02-02 07:44

    try this

    @Html.ActionLink("Forgot your access?", "RecoverPassword", 
    "Account", new { area = "registration-full.html" }, 
    new { @class = "col-xs-6", id = "login-forget-link" })
    

提交回复
热议问题