404 status Error when calling web/Api in asp.net mvc5

i am trying to post string to web/api action but every time its giving me 404 error **Api Controller Name: Getdata Action Method Name : postdata please help to identify error. ** ** public bool postdata(string fn) { using (var client = new HttpClient()) { client.BaseAddress = new Uri(“http://localhost:59968/api/Getdata”); var task = client.PostAsJsonAsync(“postdata”, fn); task.Wait();…

jquery validation equalto not working in ASP.net content page

I have two textboxes for password and confirm password. But the validation using Jquery validation plugin is not working. My controls are in Content page. <asp:textbox TextMode=”Password” runat=”server” ID=”txtPassword” required=”True” class=”form-control”></asp:textbox> <asp:textbox TextMode=”Password” runat=”server” ID=”txtConfPassword” required=”True” equalto= “ContentPlaceHolder1_txtPassword” class=”form-control”></asp:textbox> I have even tried equalto='<%=txtPassword.UniqueID %>’ and equalto='<%=txtPassword.ClientID %>’ but its not working. My script is…

Asp.Net MVC Razor app with AngularJS migration to Angular 8

I have a .Net web app running .Net Framework 4.6.1 with Razor and AngularJS 1.7.5 and we wish to migrate to Angular 8. Routing is being done in .Net. The HTML contains both Razor and AngularJS logic to render the UI. Sample Razor/Angular HTML: <div id=”container” ng-controller=”MyController”> @Html.Action(“MyView”, “Home”) </div> Sample AngularJS logic Code: angular.module(‘myApp’).controller(‘MyController’,…