ASP.NET Core Access Files inside subfolders
I am using ASP.NET with VSCode. I am new to ASP and this is my first project. I created the project and created a folder called admin with an index.cshtml file in it. But when I try to access the…
I am using ASP.NET with VSCode. I am new to ASP and this is my first project. I created the project and created a folder called admin with an index.cshtml file in it. But when I try to access the…
I am coding an unofficial twitter api for myself. Then I send a get to this api using the console screen in my browser with the following method. function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", theUrl, false…
i am trying to publish my API on my web hosting service using PLESK and i DO the following thing below : Publish The Solution on visual Studio Zip The Publish folder Upload on my host check the connection string…
I have a mobile application built upon Ionic Framework which uses many Cordova packages. We are upgrading the app from Ionic3 to Ionic5. In the Ionic3 application our .NET API was responsible to managing user logins. Going forward, in the…
I had to review some code today for an intranet site which was a javascript form with a C# WebAPI which sends the AD username and password (during login) to the backend and then logged in as that user against…
I've tried following the steps from Microsoft https://learn.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api I committed the codes I created in GitHub link below https://github.com/RGatchalian/StackOverflowQuestions/tree/master/ASPNET/EnablingCors Just to explain, Front-end folder is the call from Javascript to the WebApi and TestingCors folder is the WebApi. I'm currently…
I'm using ajax for calling a delete action in my web api controller.I have problem with two types of calling my api with Ajax. Here is my api code: [Authorize] public class AttendancesController : ApiController { private readonly ApplicationDbContext _context;…
I am working in asp.net webforms and jquery ajax since many years and now want to implement a project in asp.ner core using same front end technology jQuery Ajax.
I am writing a windows desktop application with External Authentication(Google, Facebook) in C#. I'm using HttpListener to allow a user to get Barer token by External Authentication Service with ASP.NET Web API, but administrator privileges are required for that and…
I'm trying to call an api from a page with button click via ajax call. Problem is that for GET & DELETE , the call is working but for POST and PUT, it says bad request format in firefox debugger.…