Hi frnds can any one please advice me a solution to my problem,...
i'm working on mvc3 razor apps,
i have myaccount details page which consists of different blocks of details like,
Name: under this block, first name, last name
address: address 1,2,city state, zip,...
license: number,expiry,issue country..
so whenever i edit any block i don't want page to getting refresh,so using jquery, ajax and json methods but, my problem is
[JsonException]
public JsonResult AccountDetailsUpdate(MyDetailsModel mydetailsmodel)
{
return View("viewname");
}
but it throws me error,
unable to convert JsonResult to ViewResult
i want to return to a view from json method, how can we make it