Skip the query string this way
@Html.ActionLink("Delete Record", "Home", "Delete", new { id=Id},null)
In the above code, you will get url like (Assume Id = 1): /Home/Delete/1
and if you want to add additional parameters to the query string, then:
@Html.ActionLink("Delete Record", "Home", "Delete", new { id=Id, Name=name},null)
In the above code, you will get url like (Assume Id = 1 and Name = India):
/Home/Delete/1?Name=India
Sanam Tiwari Dec 26 '17 at 0:20 2017-12-26 00:20
source share