I am trying to return a page within another when an id is passed on to a controller. But I get this error:
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
Views\Error_Summaries\Details.cshtml
@{Html.RenderAction("FindAllDetails", new { bolnumber = Model.BOL });}
Error_SummariesController.cs
public ActionResult FindRelatedBols(string bolnumber)
{
if (bolnumber == null)
{
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
}
Error_Summaries error_Summaries = db.Error_Summaries.SingleOrDefault(r => r.BOL == bolnumber);
if (error_Summaries == null)
{
return HttpNotFound();
}
return View("Views/Error_Details/Details");
}