What you’ll need for this recipe:
- Some long running GET that you really don’t want the rest of the page load to wait for.
- New ActionResult in a Controller that returns a PartialView.
- ViewUserControl that will display the results of your long running GET.
Step 1 – Action Result
Step 2 – ViewUserControl
Go create you *.ascx file. This one could be call UserControl.ascx. Add some HTML to render your long running piece of data.
Step 3 – jQuery
Step 4 – Hook it up and run
Run. It works.