Is it possible to set ViewBag data via jQuery in Razor View?

I have a ViewBag that i am using to pass data across controller and view. I need to set the selected dropdown value in the viewbag as that value is used in an ajax method but that Ajax method can't have anymore parameters. (I can't pass the selected dropdown value as a parameter). I have to use a viewbag

Any help appreciated.

Related posts

Recent Viewed