Fancybox can't open partial view
Posted
by
1110
on Stack Overflow
See other posts from Stack Overflow
or by 1110
Published on 2012-03-31T11:17:12Z
Indexed on
2012/03/31
11:29 UTC
Read the original article
Hit count: 1024
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();
}
© Stack Overflow or respective owner