Dear all,
I new to mvc,actually i want to remove querystring in th url here is the code
the url is
http://localhost:15745/ControlPanal/Edit/6
but i need it like
http://localhost:15745/ControlPanal/Edit
on (view) edit link it is
@Html.ActionLink("Edit", "Edit", "ControlPanal", new { id = item.PortfolioId })
and the controller is
public ActionResult Edit(int id)
{
}
please help me out

Rajeesh MenothRank #118 · 18.4K reputationPosted May 25, 2016, 11:08 PM EDT
Keaan Keaan10 reputationPosted Apr 9, 2021, 5:17 AM EDT