¡@

Home 

2014/10/16 ¤W¤È 12:07:08

jquery Programming Glossary: returnargs

ASP.NET MVC - Returning a PartialView to Ajax along with another object

http://stackoverflow.com/questions/10589787/asp-net-mvc-returning-a-partialview-to-ajax-along-with-another-object

GetSomePartialView SomeArgumentModel someArguments ReturnArgs r new ReturnArgs bool isAllowed CheckPermissions if isAllowed.. SomeArgumentModel someArguments ReturnArgs r new ReturnArgs bool isAllowed CheckPermissions if isAllowed r.Status 400 good.. r.View PartialView _DefaultView return Json r public class ReturnArgs public ReturnArgs public int Status get set public PartialViewResult..

ASP.NET MVC - Returning a PartialView to Ajax along with another object

http://stackoverflow.com/questions/10589787/asp-net-mvc-returning-a-partialview-to-ajax-along-with-another-object

I would like to do the following Controller C# public ActionResult GetSomePartialView SomeArgumentModel someArguments ReturnArgs r new ReturnArgs bool isAllowed CheckPermissions if isAllowed r.Status 400 good status ... proceed normally r.View PartialView.. do the following Controller C# public ActionResult GetSomePartialView SomeArgumentModel someArguments ReturnArgs r new ReturnArgs bool isAllowed CheckPermissions if isAllowed r.Status 400 good status ... proceed normally r.View PartialView _CaseManager.. else r.Status 300 not good ... display permissions pop up r.View PartialView _DefaultView return Json r public class ReturnArgs public ReturnArgs public int Status get set public PartialViewResult View get set JS .ajax type GET url Home GetSomePartialView..