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
Post a Comment