How to modify web api to return message not matched compare when excel compare return false ?
I work on asp.net core 2.2 i face issue I can't modify web api to display message "Not Matched Compare" when compare excel function return false (areIdentical == false) . web api below return physical file as zip file in case of compare excel…
Publish ASP.NET MVC Project with Local DB on Server not has SQL Server installed on it
I am developed ASP.NET MVC 5 Project, and I using local SQL Server database, I want to publish the Project on IIS Local server, But this IIS Local server do not have SQL Server, The SQL Server not installed in that local server Can I publish project on…
Do submit page, wait and only redirect page if Status = 'F'
Hi, I'm thinking to design page (Web Apps) with submit button do as following, User press submit button Wait for server processing if Status in table = 'F', then redirect the page This is my table design in SQL Server CREATE…
Docker external port
Hi, I have an asp.net core app (service) inside a docker container. I have a docker-compose.yaml that starts this container Port: 9010 --> 8070 (inside docker-compose) I use Consul for container registration and try to self-register my…
Interacting with Outlook from an ASP.Net Core Blazor Web-site
I am converting an old Silverlight application into Asp.Net Core, using Blazor and Razor Pages. The old application is opening Outlook, and creating an email ready to send with a Subject, From etc, plus a series of attachments. It is creating an…
Missing code in MS VS 2022 ASP .NET core WebApp
Hi, I noticed, that new "MS VS 2022 ASP .NET core WebApp" has modified the "Program.cs" file: var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); app.MapGet("/", () => "Hello…
internal server error 500 and file not downloaded although file creating on server ?
i work on application web api core 2.2 working with ui angular i design page download file file i need to download is create but can't download although i not get any exception error error i get ERROR HttpErrorResponse…
I caught huge queries in DB and can not find the source of that
I am actually just looking for opinions if someone had any similar experience rather than an exact solution of my problem. My project is Asp.net core 2.2 mvc project with abp framework, One of my customers has their own servers instead of cloud,…
How to build an ASP.NET Core 6 website that also contains a WebAPI?
I'm new to ASP.NET Core 6, coming from a solid WebForms background. In my searches, I'm finding many results demonstrating how to build an ASP.NET Core 6 website, and likewise many demonstrating how to build an ASP.NET Core 6 WebAPI. But I'm not…
How can I get UserProfile name in C# code on Azure Windows server
Within a C# app I need to get the current user name for an Azure Windows VM (2019). I need the path for the current user, like - c:\Users\my_user_name\Desktop. Something similar to %userprofile% The following works in development on a Windows 10…
The WebService published to Windows Server 2019 IIS cannot display traditional Chinese characters
We have a WebService published on Windows Server 2003 IIS and it works normally. We recently published it on Windows Server 2019 IIS. The characters in simplified Chinese are displayed normally, but some characters in traditional Chinese will be…
How to use List of a List in a View
I'm learning how to use views, and so far I can get the controller to build a list of Orders/OrderDetails for multiple customers, with the following classes: public class cls_ListOfViewModel { public List<cls_OrderViewModel>…
WEB API with Entity Framework Core using the JOIN statement
Hi all, I have written a WEB API with Entity Framework that read form two tables using the JOIN statement. In order to obtain the wanted result, I have used vary solutions. The "Include" statement didn't work (I don't know why), so I have…
Posting Data from .Net 5 MVC to WebApi
Hello everyone and thanks for the help in advance. I'm using .Net 5 to create a MVC web app that needs to post data to a remote server running .Net 5 WebApi. I'm going to proceed to ask multiple stupid questions, so please be patient. The data being…
Javascript library or framework to use in Razor Pages
Hi I'm not a big fan of SPAs I'm using razor pages most of the time and it has always been jquery, jquery ui and bootstrap. (Jquery is becoming obsolete or is it already?) are there any new javascript library and/or frameworks out there that I can use…
C# .net core - Nested Div with ID on button press load, but works on normal load. ViewComponent
I have a view component in my view and it works properly when its loaded one time. This view is part of a Slideshow so there are buttons on it. When the user clicks the next button it creates a duplicate outer div tag. Now with both of these divs…
Submit buttons are not working
After button "Submit C" click it is not directed to OnPostAsyncC and after button "Submit R" click it is not directed to OnPostAsyncR . Below is the code: @Anonymous @Anonymous Pro.Pages.PersonalPage.CreateNew …
About team development in vs
How to develop an asp.net core web app by team in visual studio 2019?
What is the migration guidelines to migrate .NET Core 2.1 apps to .NET 6?
Hello! I'm looking for some guidance on migrating .NET Core 2.1 applications to .NET 6(Preview). As .NET 6 is going to be a LTS, I would like to migrate it. Thanks, Siva
.Net 6 and C# 10 on MacOS Monterey
Dear community, I want to learn C# and .Net 6 for backend development with ASP .Net 6 and frontend with Blazor. As database, I'm using MySQL and PostgreSQL. Also, in the future , mobile development with .Net MAUI. I'm using a MacBook Pro M1 with…