jquery load with asp.net MVC partial view

I have a partial view and I want to render it in main view using jquery.

Here is how I am coding the jQuery:

$(document).ready(function() {
        $("#dvGames").load("/LiveGame/Partial3");
});

where as controller method looks like this:

public ActionResult Partial3(DateTime gameDate)
{
    return View("Partial3");
}

I dont see anything. I tried

<% Html.RenderPartial("Partial3"); %> 

and it works but I want to filter data in partial view so I am using jquery load method.

7
задан Jeff LaFay 5 June 2012 в 13:04
поделиться