Mohammed Rafi Khan

Mohammed Rafi Khan

  • NA
  • 349
  • 34.7k

How to hide or remove query string in mvc

May 26 2016 1:28 AM
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  
 
 
 
  
  

Answers (2)