title: Access ViewBag in JS file - Asp.net MVC
body: <p>I have one Viewbag. I have fill that viewbag value from server side in Action result method. I need to access this Viewbag value in Js file. I have access this Viewbag in *.cshl page properly. Here below shown my sample code,</p>
  
  <p><code>
  Var objMode = '@ViewBag.Mode';</code>    //Written in *.cshtml page.</p>
  
  <p>but i need to access this value like above syntax in *.js file.</p>
  
  <p>Thanks,
  Nirav Parikh</p>