¡@

Home 

c# Programming Glossary: request.isajaxrequest

MVC 3: How to render a view without its layout page?

http://stackoverflow.com/questions/5318385/mvc-3-how-to-render-a-view-without-its-layout-page

call the partial view when it is rendered. That way using Request.IsAjaxRequest in the controller I can return View or return PartialView based.. the standard GET requests. public ActionResult Index if Request.IsAjaxRequest return PartialView partialView else return View Then in Index.cshtml.. when the request is NOT Ajax public ActionResult Index if Request.IsAjaxRequest return View Return view with no master. else return View Index..

Set Timeout For Controller Action

http://stackoverflow.com/questions/6184752/set-timeout-for-controller-action

Controller public ViewResult GetFoo String fooBar if Request.IsAjaxRequest perform a ridiculously long task ~12 minutes algorithm 1 download.. public ViewResult BeginFooProcessing String fooBar if Request.IsAjaxRequest Guid fooId Guid.NewGuid var result new FooResult FooId fooId.. public ViewResult CheckFooFinished Guid fooId if Request.IsAjaxRequest FooResult result GetFooResultFromDataBase fooId if result.HasFinishedProcessing..