Edit directly in Grid on WEB Page in Razor
I have a table that I populate in Razor pages using stored procedures. I populate table in a loop on the Razor pages. I want to put a button on the grid and when you click on the button you can edit the values directly in the Grid and Save it back to the…
How to ignore ETag checking and fix this error
I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because of…
how to render razor page to another based on provide logic to login
<MudPaper Class="px-6 pb-8 pt-3 rounded-t-0"> @if (IsPhoneNumberPresent) { <RegistrationForm LoginModel="@(new OtpRegisterVm { Username = LoginPhoneNumber, CountryCode = CountryCode })" /> } else { …
RDLC reports on .NET Core 8
Hi at all, I'm using a rdlc report inside a .net core 8 app but i'm getting this error {"An error occurred during local report processing.;The definition of the report 'report path inside the project' is invalid.\r\nAn unexpected error occurred in…
Cannot access a disposed object when Upload file in Background Service
This is the error I am facing: Error occurred executing workItem. System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.String'. at…
How can pass from Datatable Data To Controller IActionResult
I want to insert some data from my datatable into another table. The checked data in my datatable is the result of the controller's action through I ajax I want to send array as parameter. Thanks in advance for your help. var table =…
Docker changes for Building .Net 8 application targeting Ubuntu 20.0.4 for amd64
Hi, We are upgrading from .Net 6 to .Net 8. I am trying to update the docker file for building the .Net application and specify .Net 8 version and target Ubuntu 20.0.4 version with amd64 architecture. Here is the code snippet at the high level FROM…
C# ASP.NET MVC: develop app with running tasks and ASP.NET MVC web UI to control it
There's a url from which I need to run api get data in JSON format and store to MS-Sql Server. This project will run mostly on server(s). We also need an application to provide an interface so that whenever needed user can select which data to be stored…
What is the max timeout for an API HTTP request in an Azure App Service Web App?
I have a NET 6 API deployed in a Web App in an Linux App Service plan with a P0v3 pricing plan. I would like to know the maximum timeout of a HTTP response because I have an endpoint whose execution time is currently of 20 minutes and would like to know…
missing -f flag that indicates the name of the Dockerfile to use
Missing -f flag in example that indicates the name of the Dockerfile to use for "Customize a Docker image to run your own web app" --> https://learn.microsoft.com/en-us/training/modules/intro-to-containers/4-create-custom-docker-image
.Net 6 Ubuntu jammy 22.04 base image upgrade. Getting GSSAPI error
We are planning to upgrade our .Net core MVC application from .Net 6 to .Net 8 version. To prepare for that upgrade we first upgraded from ubuntu 20.04 to ubuntu 22.04. This is our base image in the Docker file and the following line updates our package…
Create Azure Key Vault via c# with RBAC.
Hi, I am using below code to create Azure Key vault and below is my code. Where azure is an object of IAzure. This code is working fine. But when I am visiting this vault in Azure I can see "Permission" Model within "Acces…
How to get changes from repo remote to local on bitbucket git ?
I have two branches first branch beforefinal and second branch name is Final and i need to make merge and differences from Final branch to beforefinal branch local on my pc so How to do that please my project worked on asp.net core 8 and I worked on…
putting trim statement in LINQ
I have the employee numbers in the database starting stored this way EmployeeNumber E123456 E999999 E666666 E111111 I want to write a LINQ statement to match the database EmployeeNumber with employeeId that is passed from web. I wrote the LINQ like…
Why DataReader skip the 1st row?
Hi All, I use DataReader as below, why the 1st row is skipped?, what I have missed? using (NpgsqlConnection conn = new NpgsqlConnection(Models.AppSettings.PG_SQL.Connection_String)) { try { string sql = "select c.pid, c.iccid,…
asp.net core Button -Post method in Controller
Hi, I have asp.net core web app with index.cshtml. This has only 2 buttons 'Startservice' and 'stopservice'. I have homecontroller with httppost methods. When I click on these buttons, it never calls these methods, instead calling another method(Index()…
In .net 8 blazor webapp i am using bootstrap tab to show the component data but when i try to switch to another tab instead of showing tab content it navigate me to Home page how i can fix this.
this is my main page component where i have other tabs links below are the tab content By default company tab is active but when try to switch factory or any other tab it tries to navigate and send me back to home page. How i can fix this please…
How can Checked Child table of Data table
Clicking on a row in my datatable opens a child table. Checked boxes are attached to columns of tables and rows of child tables. I want - when clicking on table column checkbox('className': 'dt-body-center') each row(class="chk_isChecked") of…
Which framework will support for next 20 years?
Hi experts! can you describe the difference between Blazor vs Razor. Which one is better for long term enterprise level application? How long Blazor will support? what the future of Blazor for enterprise level projects? Please mentions anything…
I am using bootstrap tab in .net 8 blazor web app to render component.
@page "/QSSManagement" @using TCSManagement.Shared.Model @using TCSManagement.Shared.Model.QSSManagementModels @inject HttpClient Http @inject IJSRuntime _jsRuntime; @inject NavigationManager UriHelper @inject…