30
rated 0 times
[
32]
[
2]
/ answers: 1 / hits: 18017
/ 11 Years ago, tue, march 26, 2013, 12:00:00
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,
//Written in *.cshtml page.
Var objMode = '@ViewBag.Mode';
but i need to access this value like above syntax in *.js file.
Thanks,
Nirav Parikh
More From » asp.net-mvc