I\'m trying to use the jquery modal dialog to show a partial view async when clicking on something. Pretty simple, and there are loads of questions on this, but I can\'t seem to
Your code looks fine and it worked when I tested it. Here's my full test case:
Controller:
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult MyActionOnController()
{
// TODO: You could return a PartialView here of course
return Content("Hello world", "text/html");
}
}
View (~/Views/Home/Index.cshtml):
@{
Layout = null;
}
Test
Click Me