Computing desk | ||
---|---|---|
< April 3 | << Mar | April | May >> | Current desk > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I've been told at work that the web application I've been developing in ASP.NET Core needs to use Angular for better responsiveness. I understand ASP.NET Core but I'm a complete beginner in Angular.
I've tried a simple login page where the page uses Angular to send an AJAX POST request to the ASP.NET Core controller something like this:
$.post("/Login/UserLogin", { username: username, password: password }).done(function (data) { /* ... */ });
where the /Login/UserLogin
goes to a normal ASP.NET Core controller method that returns a ViewResult
containing the "you're now logged in" page. But I'm at a loss about how to show it. In the example call above, data
in the done()
function appears to contain the rendered HTML code of the page. How do I get the /* ... */
part to actually show it in the browser? JIP | Talk 18:21, 4 April 2019 (UTC)
$.post
call, how do I actually display it on the page in JavaScript? JIP | Talk 05:28, 5 April 2019 (UTC)