on html.actionlink click go to previous page

后端 未结 6 647
攒了一身酷
攒了一身酷 2021-01-31 16:17

Currently in a link

Customer/businessunit/RepresentativeDetails?RepresentativeId=cd3a7263-78f7-41bd-9eb0-12b30bc1059a

I have following code for vie

6条回答
  •  甜味超标
    2021-01-31 16:46

    If you still want to use ActionLink you can do something like as suggested by JuanPieterse

    @Html.ActionLink("Back to previous page", null, null, null, new { href = Request.UrlReferrer})
    

    You can use action in controller too. See answers to similar question here

提交回复
热议问题