303 questions with ASP.NET API tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

how to use localstorage in WEB API .net 6

Been googling for 4 hours now how to do this on WEB API, in .net6. how do i set a value in browser storage, and how do i retrieve it? like: Localstorage{"SomeID"} = "SomeValue" return Localstorage{"SomeID"}

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-09-20T15:43:02.077+00:00
Fazioli Amboina 61 Reputation points
accepted 2022-09-20T16:24:07.117+00:00
Fazioli Amboina 61 Reputation points
5 answers One of the answers was accepted by the question author.

asp.net web api one to many crud

I created the webapi to list all players https://github.com/KalyanAllam/Players I need code to 1)Get one player with id 2)Create a new player The player info will be sent in the body in JSON format: { …

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-09-11T13:59:31.373+00:00
Anonymous
commented 2022-09-14T05:38:44.35+00:00
XuDong Peng-MSFT 10,176 Reputation points Microsoft Vendor
1 answer

C# .NET web.api json result get

I need to create an api and when invoked an endpoint to list the available players on http://localhost:3000/api/player/. I should get json result like [ { "id": 1, "name": "player name…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-09-05T09:09:41.25+00:00
Anonymous
commented 2022-09-06T15:03:15.51+00:00
AgaveJoe 26,146 Reputation points
3 answers

How do i insert web api data in to sql server database

I want to know how can i insert web api data into sql server database, I have written an web api and i want to insert the api data into sql server database and i do it without entity framework, Can i do it with data reader? I feel like I can't do it with…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-09-05T09:02:50.937+00:00
Reborn 1 Reputation point
answered 2022-09-06T06:57:56.917+00:00
Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Prevent browser authentication ASP.NET Web API dialog on 401

I have an existing ASP.NET Webforms / MVC application (it uses a mixture of technologies), to which I want to add a Web API to use for external ajax API calls (to replace older web services and WCF). The existing ASP.NET WebForms application uses…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-08-29T01:20:05.597+00:00
Peterjc 81 Reputation points
accepted 2022-09-02T00:26:44.37+00:00
Peterjc 81 Reputation points
1 answer One of the answers was accepted by the question author.

Data Transfer Objects

I just have a quick question concerning DTO's. I read that DTO's are useful for security purposes e.g. they prevent you from sending confidential data across the network. But the tutorial also said that DTO's are also useful in the case that if there…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-08-24T06:14:41.39+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-24T20:37:10.197+00:00
Ronald Rex 1,666 Reputation points
1 answer

How to count/check number of connection pools

Im using a third party tool and also HttpClient to make some calls to get data. Most of the documentation states to have a single instance of third party tools for the HttpClient but how could i check how many open connections i have to determine…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-08-15T07:49:29.723+00:00
Mr Edge 221 Reputation points
answered 2022-08-16T02:24:24.09+00:00
Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
2 answers

how to make null values and empty element in xml have open tags and close tag? Asp.net web api 2

i am making a web api and i want to make the open tags and close tags for empty elements and null values. i am using C# and visual basic to code. My Questions: How to make open tags and close tags for null values and empty elements in xml format with…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-08-01T09:17:39.09+00:00
Reborn 1 Reputation point
commented 2022-08-03T09:19:11.653+00:00
Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
4 answers

how to compare two dates and show in the link in web api?

i have some question about getting date from previous between create_date and modify_date, i am working on asp.net web api 2 and i want to seach the date between these two dates from sql server, there are many records in database. The result outcome is…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-08-01T09:10:32.66+00:00
Reborn 1 Reputation point
answered 2022-08-02T08:57:30.017+00:00
satya karki 986 Reputation points MVP
0 answers

Error Handling In Blazor Web Server Application

I am calling a web API endpoint from my Blazor server application. And I intentionally have not started the application (.Net Core 6 Web Api) with the api service. Meaning, there is no service listening on the specified port. And I was wondering what is…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,404 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-07-31T18:51:39.13+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-01T06:12:19.75+00:00
Zhi Lv - MSFT 32,021 Reputation points Microsoft Vendor
0 answers

How to prevent of Client Privacy Violation in Sensitive Data Exposure Asp.net core with angular 8

How to prevent of Client Privacy Violation in my code below <input type="password" id="txtPassword" name="txtPassword" #txtPassword="ngModel" placeholder="Password"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-07-29T13:11:03.15+00:00
Sumanth Babu 21 Reputation points
commented 2022-08-01T02:54:29.233+00:00
Zhi Lv - MSFT 32,021 Reputation points Microsoft Vendor
3 answers

Microsoft IIS BUG!!! , HTTP Service Request Queues Performance counter

Microsoft IIS BUG!!! , HTTP Service Request Queues Performance counter Why do I say there are bug,look at the pictures below, RejectedRequests has values from the monitor. Why CurrentQueueSize the queue have no values? HTTP Service Request…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-01-04T10:29:30.457+00:00
aspx 6 Reputation points
commented 2022-07-24T01:14:39.277+00:00
Zdravko Stojkoski 6 Reputation points
3 answers One of the answers was accepted by the question author.

problem with API

I have the following in my ApiController public IEnumerable<Game> GetAllGames() { Game game = new Game(); List<Game> Games = game.ListGames(); return Games; …

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-07-19T22:42:52.29+00:00
M J 661 Reputation points
commented 2022-07-23T21:03:05.003+00:00
AgaveJoe 26,146 Reputation points
12 answers

About the IIS site request queue length?

OS: Windows Server 2016 Standard IIS: Version 10.0.14393.0 Web Sites: WebIISQueueTest .NetFramework4.5 Asp.net mvc Question 1: By which performance counter does the site's request queue length be monitored? Question 2: The request queue…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2021-12-27T08:19:18.123+00:00
aspx 6 Reputation points
commented 2022-07-23T13:01:55.36+00:00
Zdravko Stojkoski 6 Reputation points
1 answer One of the answers was accepted by the question author.

Asp.net Web API - How to get JSON response body if status is 400 Bad Request

Hello Everybody, I have an ASP.NET Web API rest application. I am calling a 3rd party web service as follows; var request = (HttpWebRequest)WebRequest.Create(WebConfigurationManager.AppSettings["PinService"] + url); …

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-07-07T10:40:46.323+00:00
Cenk 956 Reputation points
accepted 2022-07-08T04:56:41.83+00:00
Cenk 956 Reputation points
1 answer One of the answers was accepted by the question author.

How to Add two rows with merged cells in top of the Excel using DocumentFormat.OpenXml

Hi All I have implemented the code to create Excel from data table using DocumentFormat.OpenXml and it was working fine. But I want to add two rows in the excel top with merged cells (Ref Image) which contains the Title of the sheet with some…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-06-14T10:50:11.683+00:00
Elaya Raja 96 Reputation points
commented 2022-07-06T06:07:46.163+00:00
Elaya Raja 96 Reputation points
0 answers

How to populate GridView from an API call?

I am a beginner learning ASP.NET and I am working on a project where I need to create a Web API to get data from an SQL Server and then call that API from a Web Form to populate a gridview table. I've currently gotten the Web API to properly get the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-07-06T01:01:32.467+00:00
Timothy Shels 1 Reputation point
commented 2022-07-06T04:28:44.447+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer

OData $select and $expand not working on XML response?

I have been developing an API with XML and JSON responses integrating OData, but I'm having a problem retrieving XML responses with OData $select and $expand methods, but other methods work fine like $top, $filter and $orderby etc... In JSON response…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-06-17T23:22:33.317+00:00
Ken Martos 36 Reputation points
commented 2022-06-23T22:17:43.453+00:00
Ken Martos 36 Reputation points
1 answer

Implement Service Mesh in Microservices

Hello Team, The question that I am going to put here , it might be very trivial but facing some issues. Please provide your insight. I am designing an architecture of a system that has 10-15 microservices and I am planning to implement these in…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-06-21T08:22:02.193+00:00
Manish Kumar Singh3 1 Reputation point
answered 2022-06-21T14:54:10.587+00:00
Bruce (SqlWork.com) 57,166 Reputation points
2 answers One of the answers was accepted by the question author.

TPL Performance slows down above 2 Gb data migration

We have developed an Integration Tool using Task Parallel Library(TPL) PLINQ and are migrating data but its performing slow. We observed that for 2 GB of data the tool performs well but above 2 GB the performance of tool slows down. Below is the…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,746 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,311 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
303 questions
asked 2022-06-13T10:28:46.773+00:00
bharat choudhary 21 Reputation points
accepted 2022-06-16T09:38:17.57+00:00
bharat choudhary 21 Reputation points