I have a C#-MVC project. I want to refresh the page every X second - I put in the cshtml file the code:
<script type="text/JavaScript">
timedRefresh(X);
</script>
but I need to take X from C#, let's say it's "ViewBag.Seconds". How can I do this?