I'd like to get something via Ajax and put it into
What i have to return from Controler Action to put this into that DIV? Right now i had standard ASP.MVC view as result...
public ActrionResult MyAction() {
return View();
}
and in javascript i have:
$.get(<url to controler action>, null, function(data) { $(#result).html(data); })
Typical action associated with MyAction, with reload page works perfect. but when i do $.get(...) i got whole page in "data" (content and master page). How can i get only part of View(), without MsterPage??