How to update c# value in Blazor using javascript?
问题 I am wondering is it possible to update C# value in Blazor using Javascript For example <input type="text" @bind="TestValue" > <input type="button" value="Change value" onclick="ChangeValueFromJs()" > @code { public string TestValue {get;set;} = "init value"; } js function ChangeValueFromJs() { } Is there a way to update TestValue and successfully bind it to text input using js ChangeValueFromJs ? I tried doing this, but it didn't seem to work function ChangeValueFromJs() { DotNet