@Html.ActionLink returning a parameterised hyperlink

后端 未结 2 645
傲寒
傲寒 2020-12-22 01:27

I am calling:

@Html.ActionLink(\"Register\", \"Register\", \"Account\", new {area=\"FrontEnd\"})

expecting

www.example.com         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 01:47

    You need to add null for the 5th parameter (html attributes)

    @Html.ActionLink("Register", "Register", "Account", new {area="FrontEnd"}, null)
    

提交回复
热议问题