Hi there,
In my controller class I return some data to my view and it's all good.
Can i do something like this?
public ActionResult List()
{
while (true)
{
Thread.Sleep(3000);
return View("ListStatus", data);
}
}
Of course the above code won't work as when the return statement is ran the function exists.
I'm sure i can use some Ajax in the View itself to pull data up from the server every 3 second but for my current purpose it would just be easier to do what i'm attempting in the above code