Microsoft Q&A

ASP.NET API

147 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

147 questions with ASP.NET API tags

Sort by: Updated
2 answers

Edge browser showing windows security popup

We have implemented MSAL authorization in our web application but when we are executing visual studio code locally, solution running fine with IE but not with edge browser, its showing windows security credentials popup.

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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,333 questions
asked 2023-01-24T07:21:08.0833333+00:00
Nitin Patil 0 Reputation points
commented 2023-02-01T09:31:28.2466667+00:00
ShiJieLi-MSFT 1,746 Reputation points Microsoft Employee
1 answer

JSON Format WebAPI Entity Framework

Currently the JSON I'm using looks like this: The JSON file is huge so I'm only showing the first few rows in the file so not all data is shown. I'd like to get this JSON structured so I can use in a TreeView menu so I'd like to see get the out put to…

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,963 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.
147 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
422 questions
asked 2023-01-19T16:31:09.4066667+00:00
TheCoder 91 Reputation points
commented 2023-01-31T09:34:35.88+00:00
Lan Huang-MSFT 9,126 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

"Güncelle" button not working

ı dont undestand. Delete's working but update(Güncelle) not working. Where's my mistake ?

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.
147 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.
401 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-01-31T06:19:44.85+00:00
Harun Ergün 100 Reputation points
edited a comment 2023-01-31T08:53:25.92+00:00
Viorel 82,661 Reputation points
2 answers One of the answers was accepted by the question author.

Displaying Deserialized JSON Data In Razor Page

Hello Everyone, I am using Visual Studio 2022 (x64) Community Version Entity Framework Core 6 C# Razor Pages (Not MVC) I am pulling data from the Google YouTube API, and want to display it on a .cshtml page. Here is a sample of the data: { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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,963 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,422 questions
asked 2023-01-30T02:39:33.7466667+00:00
Brian Ashcraft 20 Reputation points
commented 2023-01-30T22:52:28.9233333+00:00
Brian Ashcraft 20 Reputation points
1 answer One of the answers was accepted by the question author.

how can add validation 2 drowdownlist

The user comes and selects the city from the first dropdownlist. If the first value is selected from the second dropdownlist, I want it to give an error. I want to add validation but failed. Help me please ? Where is my mistake ? my code ; var…

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.
401 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-01-30T08:28:51.2766667+00:00
Harun Ergün 100 Reputation points
accepted 2023-01-30T14:57:54.8766667+00:00
Harun Ergün 100 Reputation points
1 answer One of the answers was accepted by the question author.

How can add HTML paragraph alignment

I have a paragraph with too many words in it. I want it to be left and right aligned. Like Microsoft Word (same as ctrl+D). How can I do this? First ; I want like this ; This is (Ctrl+D) Is there a parameter in html that I can do the same way? My code…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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.
401 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-01-30T12:16:04.8233333+00:00
Harun Ergün 100 Reputation points
edited an answer 2023-01-30T14:07:56.5566667+00:00
Viorel 82,661 Reputation points
1 answer

When entering a "T" in an asp.net multi-line text box, only one <Shift> key event is caught by the onkeydown event handler of the text box.

In an ASP.NET writable multiline text box, when a "T" is entered, only a <Shift> key keydown event is caught by the text box's onkeydown event handler, and the "T" never shows up. This is running in Microsoft Edge browser. Web…

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.
147 questions
asked 2023-01-27T22:40:39.66+00:00
kip2023 0 Reputation points
answered 2023-01-29T17:24:48.06+00:00
Bruce (SqlWork.com) 28,036 Reputation points
2 answers

how to handle exception with customized error message in json format in webapi in c#

how to handle exception with customized error message in json format in webapi in c# also my webapi calling different one drive api like delete file , download file etc and my webapi return type like IActionResult and jsonstring Any body can help

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.
147 questions
asked 2023-01-28T12:49:01.5266667+00:00
Pradyut Sinha 11 Reputation points
answered 2023-01-29T10:10:07.7566667+00:00
Lan Huang-MSFT 9,126 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

How can add Phone Number Charecter Validation asp.net mvc web

Guys I have question How can Add Phone Number Charecter Validation For example.. User writing 8 charecter but ı want minimum 10 charecter and maximum 20 charekter how can add ? Model index.cshtml

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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.
401 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 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.
147 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,963 questions
asked 2023-01-26T09:07:25.9433333+00:00
Harun Ergün 100 Reputation points
answered 2023-01-26T11:19:34.17+00:00
Harun Ergün 100 Reputation points
4 answers

IIS Configurations

I have developed asp.net application. The purpose of the application is to call a rest webservice and receive some information. I have visual studio and IIS running on the same machine. I have installed the certificate that I received from 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.
147 questions
Internet Information Services
asked 2023-01-24T07:59:30.5066667+00:00
Jeddah 86 Reputation points
answered 2023-01-26T08:38:44.77+00:00
Jeddah 86 Reputation points
2 answers One of the answers was accepted by the question author.

How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage

Please I have a method SendRenewalNotification() that calls another Method PolicyScheduleGenerator() to get PDF that it will attach to a MailMessage. The SendRenewalNotification() is pasted below: private void…

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.
401 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-01-23T18:37:21.48+00:00
abiodunajai 146 Reputation points
commented 2023-01-23T21:34:41.0433333+00:00
abiodunajai 146 Reputation points
0 answers

How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage

Kindly show me how to achieve this. I have a method SendRenewalNotification() that sends Policy Renewal Notification to Clients. This Method calls another Method called PolicyScheduleGenerator() that Generates PDFs to be attached to MailMessage. …

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.
401 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-01-23T18:03:39.4366667+00:00
abiodunajai 146 Reputation points
edited the question 2023-01-23T18:21:35.97+00:00
abiodunajai 146 Reputation points
2 answers

Why my web app gets very slow to respond in azure portal?

Hi, I'm having problems with my domain because sometimes this app becomes very slow to respond, I've to restart it to fix it. it is happening every day. I checked under the "Diagnose and solve problems >> Availability and Performance"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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,963 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,320 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.
147 questions
asked 2023-01-12T06:53:23.3533333+00:00
Developer 0 Reputation points
commented 2023-01-19T11:20:46+00:00
SnehaAgrawal-MSFT 11,176 Reputation points Microsoft Employee
1 answer

Implement transaction and rollback for multiple Procedure from .net.core 6 c# ADO.net application

HI All, I am giving Below my API Model structure public int organizationNPI { get; set; } [Required] public string organizationName { get; set; } [Required] public string organizationTIN { get; set; } …

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.
147 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 questions
asked 2023-01-13T13:02:36.2366667+00:00
Binumon George 161 Reputation points
commented 2023-01-16T05:53:05.51+00:00
Zhi Lv - MSFT 18,786 Reputation points Microsoft Employee
1 answer

Multitenant JWT Validation

Hi, I'm working on a multi-tenant net core 7 webapi, where each customer has its own database and I want each customer to have its own key to generate the jwt token, instead of having one for all. I thought of having these keys in a database, but…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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.
147 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
1,895 questions
asked 2023-01-09T23:56:36.72+00:00
George Waters 1 Reputation point
answered 2023-01-10T19:04:39.913+00:00
Bruce (SqlWork.com) 28,036 Reputation points
3 answers One of the answers was accepted by the question author.

How format API complex model in c#

Hi All, I want to write one Post API to store data in database. API Structure should be same as below Json format. The requirement is below. There is a organization with multiple branch. I want to collect information like organizations,…

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.
147 questions
asked 2023-01-09T13:38:09.003+00:00
Binumon George 161 Reputation points
accepted 2023-01-10T05:14:00.637+00:00
Binumon George 161 Reputation points
1 answer

Is it possible to pause and resume a Asp.net REST API Call?

Hi, Is it possible to pause and resume a Asp.net REST API Call? I have a UI where in, there are maximum 5 jobs are listed. There are two options, either I can run each job manually by clicking RUN button (OR) I can click on Run All Job Button…

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.
147 questions
asked 2023-01-06T11:57:13.627+00:00
Hunaid Hussain 1 Reputation point
answered 2023-01-06T17:20:08.547+00:00
Bruce (SqlWork.com) 28,036 Reputation points
0 answers

Is there any option in LinkedIn API to get all ugcPosts and its statistics in an organization within single API

Hi, Is there any option to get all ugcPosts and its statistics in a organization within single API for getting organization posts by using …

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.
147 questions
asked 2023-01-04T17:44:03.623+00:00
Ashida K A 1 Reputation point
commented 2023-01-05T07:54:55.36+00:00
Ashida K A 1 Reputation point
0 answers

Is there any LinkedIn API to list ugcPosts between two date period

Hi, Please help me to find an LinkedIn API for getting ugcPosts between two date period. https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List(urn%3Ali%3Aorganization%3A89813345)&sortBy=CREATED Here add time intervel like this..…

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.
147 questions
asked 2023-01-04T17:04:41.443+00:00
Ashida K A 1 Reputation point
commented 2023-01-05T03:17:01.397+00:00
Ashida K A 1 Reputation point
3 answers

Consuming web api with JWT authentication console app

I have a console app that I copied from this forum that is supposed to consumes a web api that I wrote. The api works fine with postman and swagger. I set a breakpoint after "var response = await…

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.
147 questions
asked 2023-01-02T18:20:27.29+00:00
Heinz Deubler 86 Reputation points
answered 2023-01-04T17:08:18.613+00:00
AgaveJoe 17,106 Reputation points