When will the values of the ViewBag be flushed or cleared ?
ViewBag
When you leave the view on subsequent request. ViewBag is created in the controller and it will live until the rendering of the view. In addition to this it is something that I would not recommend you using and replace it with view models.