i am trying to encrypt my url id from asp.net razor
In my view I have the following @Html.ActionLink:
@Html.ActionLink(" ","index", "Home", new { id = Server.UrlEncode(item.ID.ToString()) }, new { @class = "fas fa-eye", @title = "Ver Detalle" }) With that I get the link as follows:
http://localhost:62201/Home/index/1 And the idea is to hide or encrypt the id for "more security", something like this:
http://localhost:62201/Home/index/unrecognizable_id And then this is decoded in my controller
I appreciate your help in advance.
https://stackoverflow.com/questions/65598880/encrypt-parameters-in-html-actionlink January 06, 2021 at 11:45PM
没有评论:
发表评论