Sandhya Kumari

Sandhya Kumari

  • NA
  • 42
  • 15.6k

Update ViewBag value on button click

Jun 26 2019 5:11 AM
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)