jquery - Why doesn't my redirecturl work for my json object in MVC -
I have a problem reaching my last action method in my MVC application. I've discovered errors, and this is probably something simple, but I can not find it.
So I have an EXX call that looks like this:
$ (document) .ready (function () {$ ("# registerUser") Click (function () {var $ username = $ ("# registerName"). Val (); var $ email = $ (val (); var $ password = $ ("# password"). Val (); $ Ajax ({url: 'Home / Register User', Type: 'Post', Data Type: 'Jason', Data: {username: $ username, email: $ email, password: $ password}, success: function (Response) {window.location.href = response.Url;}, error: function (data) {}});});});
I then get the data in the following action method
[http post] Public Action Register Register User (String Username, String Email, String Password) {Verify User, Db Return to Jason (new {url = redirectUrl});} new UrlHelper (Request.RequestContext) Code> Then I want to kill this verb method, but someone I credit my transmits never do it.
public activity log in (int id) {}
Comments
Post a Comment