Hi @Adeel Mirza ,
You can check the specific error message through the F12 developer tool.
First of all your jquery file is invalid, you can download it through NuGet Package Manager, or directly use the link below.
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
Second, when you call the method from JavaScript, you need to use a static instance.
[System.Web.Services.WebMethod]
public static void LoginUser()
{
}
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.