Category : .net-core-2.1

I use the .net application to design my web. I import the file below: //html file like: <script src="~/js/login/login.js" type="module"></script> //code login.js below: import reponsitoryfactory from "../../service/factory/reponsitoryfactory.js"; const authreponsitory = reponsitoryfactory.get("auth"); export function login() { alert(‘fasfs’); var data = { "username": $(‘#txt-username’).val(), "password": $(‘#txt-password’).val() }; authreponsitory.login(data).then(function (response) { if (response.data.success) { alert("success"); } }); }; ..

Read more