Return ActionResult to a Dialog. ASP.NET MVC

Posted by Stacey on Stack Overflow See other posts from Stack Overflow or by Stacey
Published on 2010-04-05T17:41:31Z Indexed on 2010/04/05 17:43 UTC
Read the original article Hit count: 266

Filed under:
|

Given a method..

public ActionResult Method()
{
 // program logic
   if(condition)
   {
    // external library
    // external library returns an ActionResult
   }

 return View(viewname);
}

I cannot control the return type or method of the external library. I want to catch its results and handle that in a dialog on the page - but I cannot figure out how to get back to the page to execute the jQuery that would be responsible for it. Any ideas?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about jQuery