Trying to send data of form wiht $Http.post and receive in ASP with Request.Form. How I do wrong?

37 views
Skip to first unread message

Luis Llaberia

unread,
Jun 19, 2015, 8:52:42 AM6/19/15
to asp...@googlegroups.com
I am trying to send data from a form AngulaJS with POST method and receive with ASP (not .NET) system to manage them from my application.

I do not succes to receive the data.

It is impossible?
How I do wrong?

Thanks a lot.



My test code in the client sida and server side is like this:
Every time the "ed" and "nb" is empty.



test.html  for the client side:
...

       <form ng-submit="vm.enviar()">
        Nombre: <input type="text" ng-model="vm.fdatos.nombre">
        <br>
        Edad: <input type="text" ng-model="vm.fdatos.edad">
        <br>
        <input type="submit" value="Enviar">
       </form>
...

function controladorPrincipal($http){
    var vm=this;
    vm.fdatos = {};

    vm.enviar = function(){

        .success(function(res){
          console.log(res);
        });
    }
}

Robert Zeurunkl

unread,
Jul 7, 2015, 12:41:43 PM7/7/15
to asp...@googlegroups.com
This doesn't look like an issue with the jsonasp library.  Maybe ask in an Angular Developers group, and you will have better luck.  I do not know enough about it to be helpful to you.  Sorry.
Reply all
Reply to author
Forward
0 new messages