I created a drop down list in a partial view and I am trying to render that on my aspx page. I am getting an error:
{"Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'."}
This is my aspx page where I am using the ascx control:
<td> <% Html.RenderAction("getFilterdData");%> </td> My ascx control looks like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<assist>>" %> <%=Html.DropDownList("Assists", (SelectList)ViewData["Assists"], "--Select One--")%> and my controller code is like this:
public ActionResult getFilterdData() { scorerep sc = new scorerep(); ViewData["Assists"] = new SelectList(sc.FilterData(), "assist_a",""); return View(); } Why am I getting this error and how can I fix it?