c# - BindingContext not working in Action call but does work outside of Action -


i trying change binding context of content page inside socket.io on call, , reason keeps halting action method. inside action can alter stuff inside content page, moment change bindingcontext stops method working anymore.

here example:

            //this works              app.notif_page.bindingcontext = new { count = "1234" };             socket.on("ping", (obj) => {                 //this not work                 app.notif_page.bindingcontext = new {count = "124"};             }); 

the action called above, reason bindingcontext not change. if called same page , changed data work, trying change bindingcontext halts method being able called.

thanks, avery.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -