Monday 22 February 2016

fix the following error Cannot implicitly convert type 'System.Web.Mvc.ViewResult' to 'System.Web.Mvc.PartialViewResult'

Watch on YouTube:




Replace
    public PartialViewResult test(){
            return View();
        }

with
    public PartialViewResult test(){
            return PartialView();
        }

No comments:

Post a Comment