Calling multiple Directmethod in a function

118 views Asked by At

I am building a web application using Ext.Net. I run into a problem today that I suddenly cannot call multiple server-side .NET Methods (DirectMethod) in a function.

For instance:

<script>
        function test1() {
            App.direct.Method1({ failure: function (msg) { Ext.Msg.alert('Failure', msg); } });
            App.direct.Method2({ failure: function (msg) { Ext.Msg.alert('Failure', msg); } });
        }        
</script>

This will only call Method2 but not both of them. Can someone help me, please? Many thanks.

0

There are 0 answers