I use an ASP.net WebForm in a MVC application.
I need to redirect to a MVC View or to an ActionResult method in a Controller from WebForm Button Click Event.
Is there a way to do this?
public ActionResult Index()
{
//Method in MVC Controller
//Rest of the code
}
Tried as below to redirect to a method in Controller:
protected void btnCreate_Click(object sender, EventArgs e)
{
Response.Redirect("~/BreakdownReports/Index",false);
Context.ApplicationInstance.CompleteRequest();
}