ASP .NET MVC partial views and routing

Posted by Johnny on Stack Overflow See other posts from Stack Overflow or by Johnny
Published on 2010-03-09T16:58:30Z Indexed on 2010/03/12 17:27 UTC
Read the original article Hit count: 293

Filed under:

Hi, I have an MVC view that contains a number of partial views. These partial views are populated using partial requests so the controller for the view itself doesn't pass any data to them. Is it possible to reload the data in one of those partial views if an action was triggered in another? For example, one partial view has a jqGrid and I want to refresh the data in another partial view when a user selects a new row in this grid. Is there a code example for this scenario (in C#) that I can look at to see what am I doing wrong? I am using ajax calls to trigger a new request but non of the partial views are refreshed so I am not sure if the issue is with the routing, the controller, or if this even possible at all! Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET