skip to Main Content

Jquery – .NET Core Ajax Call to Controller

This is my Index.cshtml @{ ViewData["Title"] = "Home Page"; } <div class="text-center"> <h1 class="display-4">Welcome to SyncFusion</h1> <input type="text" name="username" id="username" value=''> <button type="button" id="btnMe">Click me!</button> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function () { $("#btnMe").click(function () { $.ajax({ type: "POST", url: "HOME/Users",…

VIEW QUESTION
Back To Top
Search