HttpClient.Send not supported in mac
Hi, HttpClient.Send(request. HttpCompletionOption.ResponseHeaderRead) => not supported in mac why? it work on windows.
Calling an Action to Render View located in a Different Top Level Folder - MVC 5
I use something like this if controllers and views are in the same top level folder. <li>@Html.ActionLink("Classroom", "Index", "MyViewFolder")</li> How do achieve the same if controllers and views are in…
How to Run Asp.net website project as a web Application Project
Hello, I have just assumed a duty to take over development of a asp.net project. It happened that the project is a asp.net website project, and I discovered the the former developer did not create App_code folder, when I brought the solution to my VS…
Is controller suffix is mandatory in .NET Core (.NET 6)
public class Home : controller { public IActionResult Index() { return view(); } } I created above class without controller suffix. And below is my routing in startup.cs class .NET 6: app.UseEndpoints(endpoints => { …
How read excel file and save into database
Hello guys, Is there any tutorial reading excel files and inserting them into a database with a .net core console application? Thanks in advance.
How to use AddScope in Blazor .NET 8
I am currently learning Blazor in .NET 8 (server) and I'm having trouble understanding a key concept. I need to have a persistent service per user, so I can't use a singleton. The thing that makes sense is a scope, from all the stuff I've read online…
Access and read all SMS on Android phone with .NET MAUI
For an application that, as a part of its functionality, can read all stored SMS on an android phone, can you give general directions what to read exactly to learn and implement it in a .NET MAUI project? I'm a beginner. I've only worked with MVC, WPF…
What do the "/" and "~" signs mean in file path usage?
Hi, If you allow, I would like to ask a question. I want to access "b5.jpg" in CoreBlogTema from About/Index. Which one should I start with "/", "./", "../", "~/" in the file extension? Can you explain…
Hamburger menu freezing on one view only in Release build
I have a view in my AppShell that works totally fine in the Debug build. When I navigate to that view in the Release build using the hamburger menu, the application freezes on the screen that I was on prior to navigation. I can still use the hamburger…
IIS will not recognize the default document for an ASP.NET Core Web App (Razor Pages)
I created an ASP.NET Core Web App (Razor Pages) app in Visual Studio 2022. The site works when debugging on my local machine. It starts, redirects to my AAD login screen, and then forwards the user to the Index.cshtml page as expected. However, when I…
Save All GridView PageIndex Rows showing Duplicate rows in Database
Please help. How to Browse all 3 GridView Pages above and INSERT all rows into DB on Save Button click. Using below code is showing Duplicate row on last gridview page which is having only one record in its page 3. Thanks public void SaveButton(int…
How do you set the default document programmatically in the Program.cs file of an ASP.NET Core Web App (Razor Pages)
I have created a new app using the ASP.NET Core Web App (Razor Pages) template in Visual Studio 2022. I have the app linked up to Azure AD so when a user goes to the site it redirects them to authenticate through AAD before directing them back to the…
¿Cómo soluciono el problema "Índice fuera de los límites de la matriz."?
Me encuentro realizando un modelo de clasificación de imagenes con dimensiones de aproximadamente 200x460 en escala de grises por imagen, dónde utilizo como dataset 4 clases de imagenes distintas con cerca de 250 imagenes cada una divididas por carpetas.…
Perform basic operations on numbers in C# .net editor not working
I am working on some of the trainings in the "Perform basic operations on numbers in C#". Yesterday the editor was working just fine but today it is taking 10-15 minutes and when its done thinking it just give errors even though i have tried…
Deletion from a datagridview on the second attempt returns null exception if the column is hidden, but works fine if vissible.
my program loads a table from sqlite3 and displays the content in a datagridview form with c#. I am sorting the table entries according to name and some values which gives out of order ID's to display in the datagridview. The program works fine if the ID…
how to upgrade sqlproj,dtproj file to SDK style?
The solution has csproj and sqlproj (dtproj) files. Projects targetframework is 4.6.2 want to upgrade it .net8.0. Using upgrade-assistant upgrade csproj file . Should I upgrade sqlproj file also ? and if yes How I can do that? Any documentation .…
How to eliminate if end user open the same ASP.NET page in another tab
This is simple question. I am developing ASP.NET application and sharing the hosted URL to end user. some times end user opens the same page in multiple tab. i want to control, either should not allow the same page in another tab or redirect some…
Web app with Entra authentication got 403 error
Webapp1 is a asp.net 8.0 app with Entra as authentication provider. The registered app is app1. Webapp1 used to work but I got the 403 app after a deployment. The error page showed "Access to webapp1.azurewebsites.net was denied. You don't have the…
Save file from somebody to my web Blazor.I try browse in internet but not found how to start write the code.Let said put that file int TextBox and then need to upload,,How
@page "/" @rendermode InteractiveServer @inject NavigationManager Navigation <PageTitle>Home</PageTitle> <h1>Hello, world!</h1> Welcome to your new app. <p></p> @foreach (var image in images) { <div…
How to publish a WASM app for offline use
I have a Blazor WASM app in VS 2022 Community v 17.10.1 that I am trying to run offline, but am getting several "failed to load resource" and one "failed to register a Service Worker" exceptions as shown below. I followed these…