Microsoft Q&A

ASP.NET API

143 questions

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.

Browse all .NET tags

143 questions with ASP.NET API tags

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

Enabling HTML, CSS, and JavaScript in Visual Studio 2022

I have updated the latest version of Microsoft Visual Studio 2022. Since I have books that concentrates on web development, I want to enable design time and runtime operation abilities on that framework. I am unsure which libraries to include, if…

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.
143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
482 questions
asked 2022-12-28T08:02:22.287+00:00
John 121 Reputation points
accepted 2022-12-28T22:57:52.737+00:00
John 121 Reputation points
1 answer

Task Parallel Library

Hello , I have a small question using Parallelism in c# , why did Microsoft came up with Task Parallel Library(TPL) .. why they did not use only threads ? in other words what did TPL do the threads could not do.? Can some one help me to…

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.
143 questions
asked 2022-12-25T15:49:09.783+00:00
NALB 1 Reputation point
answered 2022-12-26T05:46:48.39+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
1 answer

OWIN overwriting all claims for user in basic OIDC config

OWIN keeps overwriting all claims for the logged in OIDC user after about 5 minutes. I'm setting a claim called id_token which holds the encoded JWT token so that I can send an IdTokenHint for redirection from IdentityServer4 (but that issue also…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 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.
143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-20T05:56:11.603+00:00
James Baron 21 Reputation points
answered 2022-12-22T19:39:06.723+00:00
Bruce (SqlWork.com) 27,936 Reputation points
5 answers

Migrating from Asp.Net Web Api to Core

Hello, We have a web API that has been running smoothly for 3-4 years. Now I want to upgrade it to Core Web API. I use logging, basic authentication, OAuth, and Unity in my Web API. Will I have a lot of problems with the upgrade? May I have your…

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.
143 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
asked 2022-10-06T17:39:13.793+00:00
Cenk 666 Reputation points
answered 2022-12-16T16:57:20.17+00:00
Bruce (SqlWork.com) 27,936 Reputation points
1 answer

async Task c# webform

I need to create a webform with async Task When I click a button, I need to get return of async Task to webform lable Can anyone help me

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.
143 questions
asked 2022-12-16T07:56:24.697+00:00
Ruwan Ratnayake 1 Reputation point
answered 2022-12-16T09:29:34.907+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
2 answers

Database design suggestion

Hi there, I have an ASP.NET web API application and am trying to upgrade it to Core. I am using EF 6, code first. I have this entity but the requirements changed. Now I have more than one price and currency for a product. How can I design the…

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.
143 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,473 questions
asked 2022-11-20T17:32:34.617+00:00
Cenk 666 Reputation points
commented 2022-12-15T18:41:27.673+00:00
Bruce (SqlWork.com) 27,936 Reputation points
2 answers

$Select query in OData does not list the userdefined datatype unless user defined datatype is added to $expand query

I'm using OData Version 2.0 I would need to get all my root level property on response data type while using $Select query in my oData query url. But $select query respond only for primitive data types like (Int, String, DateTime) and custom defined…

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.
143 questions
asked 2022-12-08T10:08:35.247+00:00
Kamal 1 Reputation point
commented 2022-12-14T05:28:45.277+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
2 answers

.net 6 module/feature structure

Hi, I'm not sure if it's the right place for my struggle. I'm looking for a documentation page, I think it's a Microsoft documentation, it's about .Net 6 web API modular/feature project structure. I couldn't find the page and I didn't bookmark…

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.
143 questions
asked 2022-12-05T04:16:14.843+00:00
Sinan 1 Reputation point
commented 2022-12-06T02:15:44.127+00:00
Sinan 1 Reputation point
1 answer

How to create Web API project to retrieve Sharepoint Online list and result in JSON format

Hi I am new to API project with Sharepoint Online (MFA) to retrieve list items and result in JSON format. I want to ensure i am on the right track by using either WebAPI or Webservices in Visual Studio. or any other suggestions? Is there an project…

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.
6,920 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.
143 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
5,977 questions
asked 2020-12-13T05:43:34.983+00:00
THM THM 1 Reputation point
commented 2022-12-01T10:01:51.673+00:00
prashant sharma 21 Reputation points
1 answer

.Net Mvc with api controller authenticated by owin jwt auth but when calling protected actions in Http current User null

my web api hosted with mvc. mvc have cookie auth but i need to authenticate the web api with azure ad access token send by my another app so i use the owin jwt auth middleware but when try to access the action with [authorize] it returns authorization…

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.
143 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,575 questions
asked 2022-10-03T06:17:57.517+00:00
Surya 1 Reputation point
commented 2022-12-01T04:09:56.237+00:00
Alfredo Revilla (MSFT) 15,561 Reputation points Microsoft Employee
1 answer

http request

error while debugging graphapi code

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.
143 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
557 questions
asked 2022-11-29T04:36:33.15+00:00
abhishek appu 41 Reputation points
answered 2022-11-29T19:49:28.167+00:00
Bruce (SqlWork.com) 27,936 Reputation points
1 answer

The .net clients - Channel Factory & HttpClient behaving differently for "Expect100Continue" header

I have WCF service hosted in a Custom Microsoft Web Server. I have tried to consume the services with TLS 1.3 and with Expect:100-Continue header by two .net provided clients. ServicePointManager.Expect100Continue = true; …

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.
6,920 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.
143 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
953 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
258 questions
asked 2022-11-25T18:50:26.423+00:00
Jenus M 6 Reputation points
commented 2022-11-28T17:29:35.357+00:00
Bruce (SqlWork.com) 27,936 Reputation points
1 answer

hello to you please I have a little problem I have a gridview in which I applied a display condition. I would put a button returns all the lines displayed when you click on it

<asp:GridView ID="Gridview1" class="mx-auto" runat="server" AutoGenerateColumns="False" OnRowDataBound="Gridview1_RowDataBound" KeyNames="Id_Task" …

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.
143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-11-19T13:17:30.637+00:00
david 237 41 Reputation points
commented 2022-11-24T09:18:37.813+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
0 answers

Checkmarx Connection String Injection Issue on Excel File Uplaod

I'm using Checkmarx that scans source code and identifies security vulnerabilities within the code <asp:FileUpload ID="fuXlsWorkflow" runat="server" EnableViewState="true" /> <asp:RegularExpressionValidator…

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.
143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 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.
6,920 questions
asked 2022-11-20T02:49:08.4+00:00
MUHAMMAD AZEEM AZAM 1 Reputation point
commented 2022-11-21T17:42:38.587+00:00
Viorel 82,381 Reputation points
2 answers

How do I Pass the CheckBox Input From Razor View to the Controller

Please I have a concern/challenge with passing the Checkbox input from Razor View to Controller. The Form was created and everything works well with the checkbox parameter passed to the Controller. The challenge occurs when the form data was to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 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.
143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-11-17T21:41:14.413+00:00
abiodunajai 146 Reputation points
answered 2022-11-21T09:11:07.933+00:00
abiodunajai 146 Reputation points
1 answer One of the answers was accepted by the question author.

String was not recognized as a valid DateTime ,when pass value from gridview to database

When i am inserting Time values from gridview to database ,then it is giving me error below String was not recognized as a valid DateTime. on this line > foreach (GridViewRow row in this.GVTime.Rows) <asp:TemplateField…

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.
143 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
390 questions
asked 2022-11-17T14:19:57.537+00:00
akhter hussain 2,491 Reputation points
accepted 2022-11-19T08:30:39.033+00:00
akhter hussain 2,491 Reputation points
0 answers

Callback in Rest Api's

Hi, My question - from a 3rd party, my rest api will be called and for that we need to send a response after process (which might not be sent instantly), the response might take a day or two even. (Maybe a webhook or reverse api concept not sure).…

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.
143 questions
asked 2022-11-09T08:48:00.29+00:00
Roshan Kumar 46 Reputation points
commented 2022-11-18T06:22:09.943+00:00
Roshan Kumar 46 Reputation points
1 answer One of the answers was accepted by the question author.

Store update, insert, or delete statement affected an unexpected number of rows (0).

Hi, During load testing my application, I am getting this error. Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Scenario being, I am…

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.
143 questions
Azure SQL Database
asked 2022-11-17T09:55:23.647+00:00
Roshan Kumar 46 Reputation points
commented 2022-11-18T06:19:34.207+00:00
Roshan Kumar 46 Reputation points
2 answers

Primitive Reconciliation

Hello, There is this primitive reconciliation being made with Excel. In the beginning, it was not a problem because the data was scarce, and comparing GUIDs by eye in excel was not difficult. Now the data is too much for visual inspection. So is…

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.
6,920 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.
143 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2022-11-09T05:59:48.337+00:00
Cenk 666 Reputation points
commented 2022-11-17T05:28:59.527+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
1 answer

Automapper How to set another property if source is null

Hello, I wonder if there is a way to set Pin to Serial if Pin is null. CreateMap<CouponDto, Coupon>() .ForMember(dest => dest.Pin, src => src.NullSubstitute("-")) .ForMember(dest =>…

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.
6,920 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.
143 questions
asked 2022-08-10T08:44:32.9+00:00
Cenk 666 Reputation points
answered 2022-11-07T13:51:57.473+00:00
Laxmikant 121 Reputation points