In my DotNet Core application, I have a button set up with the some javascript placed in for my OnClick event. It looks like this:
<div>
    @(Html.DevExtreme().Button()
                             .Text("Press me")
                             .Type(ButtonType.Normal)
                             .Width(90)
                             .OnClick("notify")
    )
</div>
<script>
     function notify() {
        console.log("pressed");
       // ModifiedDuration.AdjustmentScreen_Netting.Csharp.RunBatch();
      //  var a = '<%=RunBatch()%>';
    }
</script>
The commented out lines are what I've tried to call my target method but neither have worked. The underlying method I want to call is this:
public void RunBatch()
{
    Console.WriteLine("Re-running batch");
    TestOutput print= new TestOutput ();
    print.TestMethod();
 }
Then, what TestMethod does: 
public void ProcessAdjustedBatch()
{
    Console.WriteLine("I have been called from the datagrid!!!!");
}
So after I press the button, I would expect to see the following log messages:
- Pressed
- re-running batch
- I have been called from the datagrid!!!!
But all that I see is Pressed in my dev log. How can I achieve my intended output?
 
    