3
Answers

Update ViewBag value on button click

Sandhya Kumari

Sandhya Kumari

5y
15.4k
1
Dear Friends, 
I am trying to update the value in ViewBage.ItemList after buttonclick, but not finding it possible. 
Can anyone help me whether it is really possible or not. 
 
Scenario:
Items of ViewBag.ItemList are displayed on pageload, then action of submit button changes one of values, as it is updated in DB. 
But, since my code doesnt calls for a page refresh, so the ViewBag.ItemList keeps displaying the same value. 
I am working through Angular scripts. Please help me on the topic, anyone.  
Answers (3)