Fancybox can't open partial view
- by 1110
I want to open partial view in fancybox like a modal view but when I click on the link it opens whole new page but it should open that in fancybox.
I don't know if this is important but I have one more function that open images in fancybox (on the same page) and it works. Class names are different
@Html.ActionLink("Feedback", "New", "Feedback", null, new { @class = "lightbox" })
JS
$('.lightbox').fancybox();
Action method
public ActionResult New()
{
return PartialView();
}