1
Answer

How to hide or remove query string in mvc

Aarif khan

Aarif khan

8y
1.6k
1
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 (1)