I am working on small POC of asp.net mvc scaffolding. I have one action link which calls another controller's action method which in turn opens up the view of that action method. But i want that view to be open in popup not in new tab. Following is the code of action link
@Html.ActionLink("View Clients", "Details", "Client", new { id=item.Id})
In above code 'View Clients' is the link name which calls 'Details' method of 'Client controller' which passes ID as parameter as well. Following is the Client controller:
public class ClientController : Controller
{
public ActionResult Details(long id = 0)
{
Client client = db.Clients.Find(id);
if (client == null)
{
return HttpNotFound();
}
return View(client);
}
}
Above controller method returns the details view of Client controller.
So what i want to do here is to open that particular view in the popup. Does anybody have solution on this ?