Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example For Flushing Before Execution for Nik Molnar
public class HomeController : Controller {
public ActionResult Index () {
ViewBag.ExecuteAction = () => {
// do stuff here
return model;
return View();
@* some scripts and other things here *@
<h1>My awesome page</h1>
@{ Response.Flush() }
@{ var model = ViewBag.ExecuteAction(); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.