Update ViewBag with jQuery and rendering results
I have an MVC3 application which uses ViewBag variables to dynamically fetch data from database and dynamically generate the interface. I am using jQuery to call action method to insert some values to the database and update a ViewBag variable accordingly. I want to refresh the div with the new ViewBag values returned after the update from server...Cant really figure how to do that. Thanks This is my View code: <div id="phys"> <fieldset> <legend>IPSS</legend> @foreach (var parameter in ViewBag.four.Parameters) { @MyHelpers.ParameterList(parameter, ViewBag.four.ParametersValues, "ParametersList
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.