Predicate<T> through jQuery with ASP.NET MVC
        Posted  
        
            by Stacey
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Stacey
        
        
        
        Published on 2010-03-17T22:35:44Z
        Indexed on 
            2010/03/17
            22:41 UTC
        
        
        Read the original article
        Hit count: 397
        
jQuery
|asp.net-mvc-2
One of my co-workers wrote an ActionResult that accepts a Predicate as its input parameter. We need to call this method through jQuery - but obviously that doesn't work. Is there any way to pass a query through a method in jQuery that it will accept?
public ActionResult List(Predicate<TModel> expression)
{ 
 // ...
}
$('#item').load('/list', //... ??? 
)
© Stack Overflow or respective owner