Ask Question

ASP.NET Core is a lean, composable, and cross-platform framework for building web and cloud applications. It is fully open-source on GitHub. ASP.NET Core apps can be run on Windows, Linux, or macOS.

70,358 questions 5

-4votes0answers12views

How to get from database for an "a href="?" " in asp.net [closed]

How can I get value from database. The link doesn't work when I type it as below. Thanks in advance for your help. Razor page Code Sql Data: user avatar EmrahYilmaz57

  • 1
0votes1answer9views

Adding a default role to a registered user

There's three roles and I want to add a default "user" role whenever there's a registration. I'm using asp.net 6 mvc with identity What I did it's not working. I checked the tables and the ... user avatar qwerty

  • 1
0votes1answer8views

does startup.cs file require application pool restart or recycle when there is change in startup.cs file

I have one custom middleware which i have to configured like this way if we disable it from backend then that middleware should detach from request pipeline and if i enable then it should i again ... user avatar Amit Ghuge

  • 33
0votes1answer12views

Consume an external authenticated api using HttpClient in blazor client

I am trying to consume an external authenticated web api using HttpClient. The external api is part of an orgin for which user is already authenticated and the cookies are present. The call in ... user avatar Jerry John

  • 1
0votes0answers23views

Regex parse query string with ampersand in value

I'm getting query string from 3-rd party service and ampersand in value is not encoded there, so my case is: param1=test&param2=cpd&cpd&param3=abc so I need to get it like param1 = test ... user avatar Alex Kvitchastiy

  • 248
0votes2answers16views

Linq result to ViewData and show result in PartialView

Can anyone help me I beginner in programming Asp.Net.Core MVC I have this two methods in HomeController.cs and trying to make a query from database FactoryContext table MoldingOrders and make a view ... user avatar Madbeap

  • 79
0votes1answer9views

.NET Core ASHX 404

I've got a file in my wwwroot folder called myfile.ashx, but when I browse to I'm getting a 404 error. My first thought was this is a MIME Type issue. So I tried ... user avatar s15199d

  • 6,688
-1votes0answers20views

IIS10 Is throwing a 404 Error Code When Asked To Serve .asp/.aspx Pages [closed]

My company needs to add some features to our websites that necessitate ASP.NET features. I have a MVC ASP.NET web application hosted locally on IIS 10 that has these new features. However, all of my ... user avatar Benjamin Sears

  • 7
0votes0answers20views

Cannot upload large file x>1GB in ASP.NET CORE 6 RAZOR PAGES

i have been looking for a way to upload a large files to my server. My form works for small files x<30MB. This is my form: <div> <div" title="show questions tagged 'c#'" rel="tag">c# user avatar Software_Architect

  • 15
0votes0answers14views

Swagger/OpenAPI static file not appearing

I'm trying make the dotnet 6 Weather API example generate the static swagger.json or swagger.yaml. I'm pretty sure i've followed the steps from Microsoft docs but no static files are being generated, ... user avatar Sam Jones

  • 4,214
1vote0answers14views

.NET model binding not working in POST request with JsonProperty

I have a model like public class DeleteMe { [JsonProperty(PropertyName = "id")] public string LalaId { get; set; } public string Other { get; set; } } I want to be able to send ... user avatar Michael Tontchev

  • 759
0votes0answers19views

View not returned properly in ASP.NET MVC Core 6

On click of the button, a javascript function is called that captures the snapshot from the camera and sends it to process. On backed, we get the image and do some process and get the data in an ... user avatar Muhammad Usama Alam

  • 1
0votes0answers6views

EditorConfig optional suffix for Classes

I want my classes to be in PascalCase, but I also have some DTOs that end with "DTO". (For example "MyClassDTO". Is it possible to add an optional Suffix for DTOs? user avatar Ronnie

  • 3
0votes0answers26views

How to use JWT token in Angular

I have an API, using the ASP core as my back end. At the back end, a JWT is generated. I can access the data from the postman using the generated token. But using Angular, I do not understand how to ... user avatar Malshan Hansaka

  • 42
-2votes0answers19views

C# Round nullable double to nearest nullable integer [duplicate]

I have "somemethod()" with calculate and return null double. I would like to round it to nearest interget number and assign to nullable interger variable //see fund is nullable interger int? ... user avatar itmannz

  • 397

153050per page

1 2 3 4 54691