dateType should be "html", not "json", if your action returns a PartialViewResult:
public ActionResult UserGallery()
{
// do something
return PartialView();
}
and
$.ajax({
url : '@Url.Action("UserGallery")',
dataType: "html",
success: function (result) { success(result); }
});